User Tools

Site Tools


en:examples:debugging:profile_in_code

This is an old revision of the document!


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.1544146048.txt.gz · Last modified: 2018/12/06 21:27 (6 years ago) (external edit)