====== 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(); }