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/06 21:27 (6 years ago) by 127.0.0.1