Quote:Original post by NightCabbage
and would there be any point in updating more than once per frame?
Many physics simulations work better doing several smaller updates than one massive one.
Quote:Original post by NightCabbage
and would there be any point in updating more than once per frame?
Quote:Original post by NightCabbageIf you turn that question around to "is there any point in rendering less than once per update", then the answer might be yes ;)
eg. isn't the update call done before the draw call (one after the other - once per frame)?
and would there be any point in updating more than once per frame?
TargetFPS = 60.0SecPerFrame = 1.0 / TargetFPS -- Will be about 16.66msdo FrameTime = 0 do deltaTime = GetDeltaTime() Update(deltaTime) FrameTime = FrameTime + deltaTime while FrameTime < SecPerFrame Render()while GameStillRunning