Game Development Community

Why when the TGEA runs, the cpu is at 100% almost all the time?

by Hongtao Wang · in Torque Game Engine Advanced · 07/05/2007 (10:52 pm) · 6 replies

It is not for TGE I have tested.

#1
07/06/2007 (9:41 am)
Stephen might chime in here but I think this is expected. Basically TGEA will drive the CPU as hard as it can while it is running. That way people with super computers can get those 100+ FPS rates that they love to have.
#2
07/06/2007 (12:53 pm)
Mark is correct--it's not that TGE-A is requiring everything your cpu can handle, but it's saying "hey, I'm a game, and my user wants as much performance as possible, so cpu, gimmie all you got!"
#3
07/07/2007 (12:34 pm)
Is there a way to limit it? i would like to cap my game at 30 fps, if that would put less strain on the system.
#4
07/08/2007 (3:00 am)
I understand , thank you very much!
#5
07/09/2007 (10:38 am)
@Will - Just put a simple frame limiter in your code... check how much time has elapsed between frames... if it is less than 30 milliseconds... use Platform::Sleep() to sleep off the rest of the time. Platform::Sleep() isn't accurate, but it works good enough for a frame limiter most times. TGB has a frame rate limited as well if you want to copy them.
#6
07/09/2007 (5:58 pm)
Thank you, I will try it.