User Tools

Site Tools


en:examples:debugging:profile_in_code

Turning on Profiling with Code

Config

[Input]
SetList = InputSetTemplate
 
[InputSetTemplate]
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: 2018/12/07 05:27 (19 months ago) (external edit)