Skip to content

Commit

Permalink
- fixed: Reset the renderer timer to 0 at the start of render. This p…
Browse files Browse the repository at this point in the history
…revents screen jankiness with systems at longer than ~2 days uptime.
  • Loading branch information
Rachael Alexanderson committed Nov 14, 2017
1 parent 0323f54 commit c5775ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/d_main.cpp
Expand Up @@ -779,7 +779,10 @@ void D_Display ()


{
screen->FrameTime = I_msTime();
static uint32_t firstFrame = 0;
if (firstFrame == 0)
firstFrame = screen->FrameTime;
screen->FrameTime = I_msTime() - firstFrame;
TexMan.UpdateAnimations(screen->FrameTime);
R_UpdateSky(screen->FrameTime);
switch (gamestate)
Expand Down

0 comments on commit c5775ed

Please sign in to comment.