Memory usage to high in windowed mode
by Matthew Medina · in Torque Game Builder · 01/30/2007 (10:03 pm) · 1 replies
Hi, I recently compiled a game, and then went itno the prefs.cs file in the compiled folder and changed "$pref::Video::fullScreen" to be 1, so that the game is in full screen. While the game was running, I checked the Task Manager, and it said I was using 3000k of memory for the game. Then, just out of curiosity, I set "$pref::Video::fullScreen" to 0, for windowed mode. Then when I checked the task manager, it said the game was using 211,000k! I been redoing this and checking, and it's about the same every time. What would be causing this problem?
Also, another problem, when it is in windowed mode, it seems to load a little faster than when it is in full screen. I checked the console to see if the would give me any clues as to why, and I saw this:
It looks like it's first loading it at 640x480, then it redoes everything to 1024x768. Is that why it takes a bit longer? It does not do that in windowed mode. Also, when I change "$pref::Video::windowedRes" in my compiled games prefs.cs to 1024x768, and then play it, when it I re-check the prefs.cs when I'm done, it has reset it back to 640x480.
Does anyone know what I can do to fix these to problems, if possible? Thanks
Also, another problem, when it is in windowed mode, it seems to load a little faster than when it is in full screen. I checked the console to see if the would give me any clues as to why, and I saw this:
Activating the OpenGL display device... Activating the OpenGL display device... Setting screen mode to 640x480x32 (w)... Creating a new window... Acquiring a new device context... Pixel format set: 32 color bits, 24 depth bits, 8 stencil bits Creating a new rendering context... Making the new rendering context current... Setting screen mode to 1024x768x32 (fs)... Changing the window style... Changing the display settings to 1024x768x32...
It looks like it's first loading it at 640x480, then it redoes everything to 1024x768. Is that why it takes a bit longer? It does not do that in windowed mode. Also, when I change "$pref::Video::windowedRes" in my compiled games prefs.cs to 1024x768, and then play it, when it I re-check the prefs.cs when I'm done, it has reset it back to 640x480.
Does anyone know what I can do to fix these to problems, if possible? Thanks
About the author
Torque Owner Ben R Vesco