Improve vid_fps stats
This commit is contained in:
parent
9203784ee0
commit
ca5fae50d6
3 changed files with 28 additions and 14 deletions
|
|
@ -276,8 +276,8 @@ public:
|
|||
static float GetZNear() { return 5.f; }
|
||||
static float GetZFar() { return 65536.f; }
|
||||
|
||||
// The original size of the framebuffer as selected in the video menu.
|
||||
uint64_t FrameTime = 0;
|
||||
uint64_t FrameTimeNS = 0;
|
||||
|
||||
private:
|
||||
uint64_t fpsLimitTime = 0;
|
||||
|
|
|
|||
|
|
@ -659,6 +659,7 @@ void FStartScreen::Render(bool force)
|
|||
if (nowtime - screen->FrameTime > 30 || force)
|
||||
{
|
||||
screen->FrameTime = nowtime;
|
||||
screen->FrameTimeNS = I_nsTime();
|
||||
screen->BeginFrame();
|
||||
twod->ClearClipRect();
|
||||
I_GetEvent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue