mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-17 00:11:05 +00:00
- fixed: Reset the renderer timer to 0 at the start of render. This prevents screen jankiness with systems at longer than ~2 days uptime.
This commit is contained in:
parent
0323f54384
commit
c5775edc95
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue