Profiling

From SM64Decomp Wiki
Revision as of 03:29, 9 November 2020 by Tenry (talk | contribs) (Created page with "The game has a builtin profiler which can be enabled by setting <code>gShowProfiler</code> to ''TRUE'' in '''src/game/main.c'''. When enabled, colored bars are shown at the bo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The game has a builtin profiler which can be enabled by setting gShowProfiler to TRUE in src/game/main.c. When enabled, colored bars are shown at the bottom of the screen. Pressing L switches from mode 0 and 1.

In mode 0, the colors of the top profilers have the following meanings:

  • Red: sound duration
  • Yellow: level script execution
  • Orange: render duration

In mode 1, the colors of the top profilers have the following meanings:

  • Red (left): sound update times
  • Yellow: gfx time related
  • Orange: gfx time related
  • Red (right): vblank time related

The bottom line (blue, yellow, orange, red) are reference bars for the maximum length.