mySize -= '2 2 0' * panel_bg_padding;
}
- float currentTime = gettime(GETTIME_REALTIME);
+ float currentTime = gettime(GETTIME_FRAMESTART);
if(autocvar_hud_panel_engineinfo_framecounter_exponentialmovingaverage)
{
float currentframetime = currentTime - prevfps_time;
if(!STAT(SHOWFPS))
return;
- float currentTime = gettime(GETTIME_REALTIME);
+ float currentTime = gettime(GETTIME_FRAMESTART);
+
showfps_framecounter += 1;
if(currentTime - showfps_prevfps_time > STAT(SHOWFPS))
{
STATIC_INIT(fpscounter_init)
{
- float currentTime = gettime(GETTIME_REALTIME);
+ float currentTime = gettime(GETTIME_FRAMESTART);
showfps_prevfps_time = currentTime; // we must initialize it to avoid an instant low frame sending
}