1
0
forked from 0ad/0ad

Keep renderer in sync with simulation when running too slowly for the sim to keep up

This was SVN commit r2895.
This commit is contained in:
Ykkrosh 2005-10-10 19:49:02 +00:00
parent f2ccab089c
commit 1b59f4c56e

View File

@ -74,6 +74,7 @@ void CSimulation::Update(double frameTime)
{ {
// The desired sim frame rate can't be achieved. Settle for process & render // The desired sim frame rate can't be achieved. Settle for process & render
// frames as fast as possible. // frames as fast as possible.
frameTime -= m_DeltaTime; // so the animation stays in sync with the sim
m_DeltaTime = 0.0; m_DeltaTime = 0.0;
} }