Changes between Version 3 and Version 4 of EngineProfiling


Ignore:
Timestamp:
May 26, 2012, 1:23:40 AM (12 years ago)
Author:
historic_bruno
Comment:

update to point to new GameDataPaths page

Legend:

Unmodified
Added
Removed
Modified
  • EngineProfiling

    v3 v4  
    3232Pressing F11 multiple times will toggle through different profiler modes (script data, network data, renderer data).
    3333
    34 Pressing Shift+F11 will save `profile.txt` in the logs folder (`~/.config/0ad/logs/` on Unix, `%APPDATA%\0ad\logs\` on Windows). Pressing it multiple times (without restarting the game) will append new measurements to that file.
     34Pressing Shift+F11 will save `profile.txt` in the game's logs folder (see GameDataPaths). Pressing it multiple times (without restarting the game) will append new measurements to that file.
    3535
    3636== Low-overhead timer ==
     
    7070If you're not measuring graphics or GUI code, replay mode lets you run the simulation (the gameplay code and scripts and the AI etc) at maximum speed with all graphics disabled. This should be fully deterministic (i.e. you'll get the same results on each run) and doesn't need user interaction (so you can easily run in Valgrind).
    7171
    72 First, play the game normally, in either single-player or multiplayer. It will generate a file `~/.config/0ad/logs/sim_log/${PID}/commands.txt` (or somewhere in `%APPDATA%\logs\` on Windows) based on the process ID; looking for the newest directory should find it. This contains the map setup data and a list of all players' inputs, so the game can be replayed. You might want to copy the `commands.txt` to somewhere memorable.
     72First, play the game normally, in either single-player or multiplayer. It will generate a file `sim_log/${PID}/commands.txt` in the game's logs path (see GameDataPaths) based on the process ID; looking for the newest directory should find it. This contains the map setup data and a list of all players' inputs, so the game can be replayed. You might want to copy the `commands.txt` to somewhere memorable.
    7373
    7474Run the game like