Window focus
by Jendrik Posche · in Torque Game Engine · 06/25/2008 (2:02 am) · 4 replies
Hi All,
I noticed that torque will go slower with loading the level when the window doesn't have focus. Is there a way to turn this off?
Regards,
I noticed that torque will go slower with loading the level when the window doesn't have focus. Is there a way to turn this off?
Regards,
#2
06/25/2008 (6:32 am)
Actually, it is one of Torques "features", or so I've heard. Somewhere in the engine, there's a check to see if the window is focused, and if it isn't, for every 1 millisecond, it will wait 100. That's what I've heard/read, but I've never looked to confirm it.
#3
Do you have any idea where I should look in the engine to remove this?
06/25/2008 (6:34 am)
Ok, I will look into it, it's pretty annoying that it pauses. Especially when you want to check your email while waiting.... sort of speak. Do you have any idea where I should look in the engine to remove this?
#4
change
S32 sgBackgroundSleepTime = 3000;
to
S32 sgBackgroundSleepTime = 0;
And also the $prefs::sgBackgroundSleepTime off course.
02/19/2009 (7:48 am)
Found solution:change
S32 sgBackgroundSleepTime = 3000;
to
S32 sgBackgroundSleepTime = 0;
And also the $prefs::sgBackgroundSleepTime off course.
Torque Owner Caleb
Default Studio Name
The lagging your experiencing isn't a torque feature. Without more then one core in your machine, computers only pretend to do more then one thing at a time. When opening multiple windows, the windows take turns with the processor, and the window with focus get the longest turn. The desktop would take more processor If you had torque minimized, and torque would load slower.