Performance Profiling: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Line 33: Line 33:
* If you do not capture any frames with 0.3, try lowering it to 0.2 or 0.1.  
* If you do not capture any frames with 0.3, try lowering it to 0.2 or 0.1.  
* If it triggers too early, before the main slowdown happens, increase it to a higher value, e.g. 1.0.
* If it triggers too early, before the main slowdown happens, increase it to a higher value, e.g. 1.0.
== Read also ==
[[https://community.bistudio.com/wiki/Code_Optimisation#How_to_test_and_gain_this_information_yourself.3F Scripting Code Optimization]]


== Sources ==
== Sources ==


* [https://dev-heaven.net/issues/60304 Comments by Suma]
* [https://dev-heaven.net/issues/60304 Comments by Suma]

Revision as of 20:02, 15 February 2014

Versions with performance profiling

  • 98699
  • 98711
  • 98809

These beta builds contain performance tools normally not available for a retail version. These builds will be a bit slower as a result, and is therefore not intended for a general use.

Scripting commands

diag_captureFrame sample output
diag_captureFrame sample output
diag_captureFrame sample output

How to use

  1. Run a mission
  2. Execute a scripted command diag_captureSlowFrame ['total',0.3] using any means (DevCon, mission radio trigger...)
  3. Once a slow frame is detected, a window will open.
  4. In the window you will be able to browse a lot of interesting performance information, which can be interesting.
  5. But the main thing you should do so that I can see the information as well is:
    1. Select Main Thread (if not selected yet)
    2. Press Copy button
    3. Open an external text editor
    4. Paste the text into a new file
    5. Save the file

Notes

  • 0.3 is a time in second used to determine what duration of a frame you consider abnormal, and first such frame will be captured.
  • 0.3 is definitely something you should not see in a normal game.
  • If you do not capture any frames with 0.3, try lowering it to 0.2 or 0.1.
  • If it triggers too early, before the main slowdown happens, increase it to a higher value, e.g. 1.0.

Read also

[Scripting Code Optimization]

Sources