Improving the stability of rendering frame rate
This commit is contained in:
parent
7ca95512d8
commit
01e8e45c40
|
|
@ -870,8 +870,6 @@ void EndDrawing(void)
|
|||
#endif
|
||||
|
||||
#if !defined(SUPPORT_CUSTOM_FRAME_CONTROL)
|
||||
SwapScreenBuffer(); // Copy back buffer to front buffer (screen)
|
||||
|
||||
// Frame time control system
|
||||
CORE.Time.current = GetTime();
|
||||
CORE.Time.draw = CORE.Time.current - CORE.Time.previous;
|
||||
|
|
@ -891,6 +889,8 @@ void EndDrawing(void)
|
|||
CORE.Time.frame += waitTime; // Total frame time: update + draw + wait
|
||||
}
|
||||
|
||||
SwapScreenBuffer(); // Copy back buffer to front buffer (screen)
|
||||
|
||||
PollInputEvents(); // Poll user events (before next frame update)
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user