Post

 Resources 

Console


Re: VideogameLayer3d (VGL3d) Alpha Demo - rene (2 replies, 12 views) (2004-Sep-9)
-
I really really don't understand why people insist on using a frame cap instead of using time based modelling, it's so much simpler and more effective.. rene


-
Up One Level | Back to News

Actually, you should use both. [:)] A frame rate cap can help the game maintain a constant frame rate. A game that plays at a constant 30 FPS maintains the illusion of motion much better than a game that has a frame rate that fluctuates between 30 and 60 FPS. A problem with time based modeling is that the faster the frames per second, the lower your accuracy becomes because you have a predefined precision. If your delta time between frames is too small, then you run the risk of values being continuously rounded down. This could make things like particle-systems not move at all.
  Close
Re: VideogameLayer3d (VGL3d) Alpha Demo - rene (0 replies) (2004-Sep-10)
Not nescesarily.. just do something like this (ripped from my physics engine) updatetime = GetTickCount() Dim deltatime As Int32 = updatetime - lastupdate Dim timestep As Single = 1 / IterationsPerSec 'this is actually a constant Dim iterations As Int32 = deltatime * 0.001 * IterationsPerSec For k = 0 To iterations 'do stuff Next k lastupdate = updatetime
  Close

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 102 visitors within the last 20 minutes
RSS News Feed