Juggernaut
Member
|
Constant Game Speed ?
Hello Esenthel,
How do I make sure that all movements and rotations of all game objects -
animated characters, cameras, static objects in the scene takes place at a
constant speed across different hardware specs - same speed on both weaker/older CPU and GPU and stronger/newer CPU and GPU ?
What about animated character models ? How do I make sure that the animations will take place at the same speed on all hardware irrespective
of the processing power of the motherboard processor and GPU ?
Does the Esenthel 2.0 engine handle all these automatically internally ? Or do I have to handle this myself by writing custom code/routines ?
Thanks,
|
|
09-08-2013 11:42 PM |
|
Zervox
Member
|
RE: Constant Game Speed ?
EE handles it, also for your own code use delta time(Time.d())
|
|
09-09-2013 01:32 AM |
|
Juggernaut
Member
|
RE: Constant Game Speed ?
Zervox : Would you please care to clarify what are handled by Esenthel Engine 2.0 automatically and what needs to be handled by me through custom code ?
|
|
09-09-2013 09:42 AM |
|
Esenthel
Administrator
|
RE: Constant Game Speed ?
All existing EE code is correct.
You only need to take care of your own code that you will be writing.
|
|
09-09-2013 11:14 AM |
|
Tottel
Member
|
RE: Constant Game Speed ?
You handle this by multiplying everything that is affected by the framerate (moving objects, incrementing vars, ..) with the delta time. Which is Time.d();
delta time is the time in between 2 frames. So the higher your frame-rate, the lower deltatime will be.
|
|
09-09-2013 11:58 AM |
|
Juggernaut
Member
|
RE: Constant Game Speed ?
Thank you Esenthel and Tottel for the clarification and advise.
|
|
09-09-2013 01:31 PM |
|