Page MenuHomeFeedback Tracker

diag_frameNo inaccurate at high framerates
Closed, ResolvedPublic

Description

Uncap the server's framerate to something like 1000fps via limitFPS and you can see diag_frameNo returns the same number for multiple EachFrame executions.

This might also only show up while the server has been running for multiple hours before becoming inaccurate.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Execute the following on the server after running it for a few hours and observe diag_frameNo returns the same value over multiple executions

[] spawn {
    private _id = addMissionEventHandler ["EachFrame", {diag_log format["fn(%1) date(%2)",(diag_frameno toFixed 0), systemTime]}];
    sleep 1;
    removeMissionEventHandler ["EachFrame", _id];
};

Event Timeline

JonBons2020 updated the task description. (Show Details)
JonBons2020 updated the task description. (Show Details)Feb 27 2023, 11:40 PM
JonBons2020 edited Steps To Reproduce. (Show Details)

Nvm, I am dumb and I realize the mistakes in trying to represent the large value misled me

dedmen closed this task as Resolved.Feb 28 2023, 4:15 PM
dedmen claimed this task.