Page MenuHomeFeedback Tracker

diag_captureSlowFrame doesn't work as mentioned in BIKI
Closed, ResolvedPublic

Description

In profiling branch (all updates are OK):

We can read in BIKI: diag_captureSlowFrame
example 1: diag_captureSlowFrame ["total", 0.003];

But that returns an error, running it from debug console, or attempting to write it inside a trigger:

Error in expression <diag_captureSlowFrame ["total", 0.003];>
Error position: <["total", 0.003];>
Error Missing ;

It seems diag_captureSlowFrame doesn't accept anything after the command.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Performance
Steps To Reproduce

Just try to run this BIKI example, in profiling branch.

Additional Information

I'd really like to know what: bgD3D, total, memAl, visul, Mjob mean!

I'm trying to chase a lag during a preview but there is no real help with this tool, so far. Thanks for a little effort in explanation.

Event Timeline

PiepMGI created this task.Dec 26 2022, 9:21 AM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedDec 26 2022, 10:37 PM

It's for diagnostic branch, dunno if available on perfprof @dedmen

In Diag_captureSlowFrame:
**biki warns: "Only available in Diagnostic/Profiling branch(es)."

In performance profiling:
No mention for a mandatory diagnostics exe, but **biki warns : "This work also with Arma 3: Diagnostics Exe."

I guess the scripting commands for performance profiling needs arma3diag_x64.exe to be run.
In this case, the documentation should be more detailed.
Some hints about how to find a "laggy" script among the "bgD3D, total, memAl, visul, Mjob" jungle could be interesting for non-dev keen on scripting. Thanks for them.

dedmen closed this task as Resolved.Jan 10 2023, 5:48 PM
dedmen claimed this task.

It is available in the profiling binary, when you get that error it means you are not running the profiling binary.
Keep in mind that perf/prof branch by default runs the "performance" binary