Game Development Community

Application Focus/Server Cleanup(seprate questions)

by Richard Dechow · in Torque Game Engine · 03/20/2008 (1:02 pm) · 1 replies

My first question, is, it seams when torque doesn't have focus on any machine I run it on, the FPS drops a substantial amount, as if its being capped on resources its allowed to use, when it doesn't have focus, is there any way to disable this? so that torque will run without focus, just as it does with focus?

To help explain the issue, is this game is running at a museum, and the users have no access to keyboard or mouse, were using a custom controller to interact with the game, and the game seams to loose focus every once in awhile for no reason (most-like virus scan/updater/notice boxes taking focus over the current running application). and the user has no mouse to click on the game again, to allow it to regain focus.



My next issue is, after having our game run for several hours, and having several people play it, the load times to load the same mission (we only have one), get substantially longer, what used to be 5 seconds to load a mission is now 5 minutes. It appears that not every node is being deleted from the last mission, and its taking up resources little by little until the game is slowed to a crawl. Is there a surefire way to clean up anything i might be missing when cleaning a mission on both client and server side? (i guess this is more of a torque scrip issue, but any input on this would be much appreciated.)

#1
03/20/2008 (2:39 pm)
If you look in winWindow.cc, you'll see that Torque sleeps for 100ms each time through the event loop when it's not in the foreground.

You can disable this logic and the FPS will be the same.


I would recommend a tool like Visual Leak Detector to find memory leaks.