User Tools

Site Tools


en:examples:debugging:profile_in_code

Turning on Profiling with Code

Config

[Input]
KEY_TAB = ToggleProfiler

Code

  if(orxInput_HasBeenActivated("ToggleProfiler"))
  {
    /* Toggles profiler rendering */
    orxConfig_PushSection(orxRENDER_KZ_CONFIG_SECTION);
    orxConfig_SetBool(orxRENDER_KZ_CONFIG_SHOW_PROFILER, !orxConfig_GetBool(orxRENDER_KZ_CONFIG_SHOW_PROFILER));
    orxConfig_PopSection();
  }
en/examples/debugging/profile_in_code.txt · Last modified: 2024/11/16 12:18 (7 days ago) by iarwain