- adjust vid_fps by i_timescale to always show the real fps value
This commit is contained in:
parent
2e8fb069f3
commit
2ee07d2df6
1 changed files with 1 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ void CalcFps()
|
|||
{
|
||||
static uint64_t LastMS = 0, LastSec = 0, FrameCount = 0, LastTic = 0;
|
||||
|
||||
uint64_t ms = screen->FrameTime;
|
||||
uint64_t ms = screen->FrameTime / i_timescale;
|
||||
uint64_t howlong = ms - LastMS;
|
||||
if ((signed)howlong > 0) // do this only once per frame.
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue