Changes between Version 12 and Version 13 of EngineProfiling


Ignore:
Timestamp:
Feb 15, 2016, 5:10:19 PM (8 years ago)
Author:
elexis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EngineProfiling

    v12 v13  
    9292If 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). It even allows you to create nice graphs for comparing the performance before and after your changes!
    9393
    94 First, 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.
     94First, play the game normally, in either single-player or multiplayer. It will save a replayfile `replays/${DATE}_${INDEX}/commands.txt` (see GameDataPaths) based on the current date. 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.
    9595
    9696Run the game like