Update core_custom_frame_control.c
This commit is contained in:
parent
ee5a87826d
commit
ac3420faac
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ int main(void)
|
||||||
waitTime = (1.0f/(float)targetFPS) - updateDrawTime;
|
waitTime = (1.0f/(float)targetFPS) - updateDrawTime;
|
||||||
if (waitTime > 0.0)
|
if (waitTime > 0.0)
|
||||||
{
|
{
|
||||||
WaitTime((float)waitTime*1000.0f);
|
WaitTime((float)waitTime);
|
||||||
currentTime = GetTime();
|
currentTime = GetTime();
|
||||||
deltaTime = (float)(currentTime - previousTime);
|
deltaTime = (float)(currentTime - previousTime);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue