if i dont use the, that are synchronized, but make my own funktions: is it possible to synchronize the movement etc. ?
if i use 1/FPS, there are bad things happening in the first second
time synchronisation
-
- Posts: 69
- Joined: Sun Oct 12, 2003 3:42 pm
- Location: Germany
-
- Posts: 69
- Joined: Sun Oct 12, 2003 3:42 pm
- Location: Germany
This is my timer code :
In my movement code I multiply the velocity with that value
Thats it
Code: Select all
m_DeltaTime = g_pDevice->getTimer()->getTime() - m_Time;
m_Time += m_DeltaTime;
Code: Select all
m_Pos += m_Vel * g_pTimer->GetTimeDelta();