Performance Profiling
9 scripting commands. Also as Markdown for agents.
- diag_captureFrameThis command starts counting frames from the moment it is executed and when the count reaches the number passed as param, the current frame is…
- diag_captureFrameToFileThis command starts counting frames from the moment it is executed and when the count reaches the number passed as param, the current frame is…
- diag_captureSlowFrameOpens "capture frame" dialog if current frame exceeds set threshold in seconds. One can indicate to either capture duration of a specific profiling…
- diag_codePerformanceAttempts to run given code with given arguments given number of cycles in unscheduled environment and returns average time it took to run the code as…
- diag_fpsReturns average framerate calculated over last 16 frames.
- diag_fpsMinReturns minimal framerate. Calculated from the longest frame over last 16 frames.
- diag_frameNoReturns number of frame currently displayed.
- diag_scopeReturns script scope depth. When script is directly executed by the engine or a new script is added to the scheduler, the scope depth is 0. The…
- diag_testScriptSimpleVMOutputs the provided SQF code's end code.