Avoid updating startscreen too often in a debug build and fix crash if it never got updated even once
This commit is contained in:
parent
496b053567
commit
3c0414a6d8
2 changed files with 6 additions and 1 deletions
|
|
@ -656,7 +656,11 @@ void FStartScreen::Render(bool force)
|
|||
{
|
||||
auto nowtime = I_msTime();
|
||||
// Do not refresh too often. This function gets called a lot more frequently than the screen can update.
|
||||
#ifdef _DEBUG
|
||||
if (nowtime - screen->FrameTime > 3000 || force)
|
||||
#else
|
||||
if (nowtime - screen->FrameTime > 30 || force)
|
||||
#endif
|
||||
{
|
||||
screen->FrameTime = nowtime;
|
||||
screen->FrameTimeNS = I_nsTime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue