EngineLoopOptimizer module
- Last UpdatedOct 01, 2025
- 2 minute read
The EngineLoopOptimizer module is designed as an idle manager for user actions and can be used to automatically switch off the rendering after a configurable user idle time.
Switching off unnecessary rendering can save resources and electricity consumption and it’s highly advisable to adopt this module in all the applications.
Please be aware that while rendering is off, GPU usage becomes zero, but CPU usage remains unaffected as the application logic layer continues to run. This enables automatic rendering resumes and immediate responsiveness of the applications upon user interacts again.
Additionally, if the app remotely streams the rendered frames (such as 3DVis Cloud deployments), the Framework encoder will automatically stop sending frames, leading to a cut both in costs and network load.
Configuration fields
The configuration fields in the EngineLoopOptimizer module.
|
Name |
Type |
Default value |
Description |
|---|---|---|---|
|
idleRenderTime |
sfloat |
5 |
Idle time threshold at which the rendering is switched off if input_forceRender is set to "auto". |
|
enable |
sbool |
true |
Enables or disables the EngineLoopOptimizer module |
Input fields
The input fields in the EngineLoopOptimizer module.
|
Name |
Type |
Default value |
Description |
|---|---|---|---|
|
enable |
sbool |
From configuration field |
Enables or disables the EngineLoopOptimizer module. It is initialized using the corresponding configuration value. |
|
forceRender |
senum |
If set to true, forces the rendering to be always active. If set to false, it switches off the rendering. If set to auto, it switches on/off the rendering depending on the current idle time threshold |
|
|
idleRenderTime |
sfloat |
From configuration field |
Idle time threshold at which the rendering is switched off if input_forceRender is set to "auto". It is initialized using the corresponding configuration value. Use this field to change the value at runtime. |
|
resetTimer |
sevent |
Resets the idle timer to 0. |
Output fields
The output fields in the EngineLoopOptimizer module.
|
Name |
Type |
Default value |
Description |
|---|---|---|---|
|
inactivityTimerNode |
sstring |
Name of the internally created InactivityTimer node |
|
|
idleTime |
sfloat |
Current idle time |
|
|
idleTimeUnit |
sfloat |
Current idle time in units from 0 to 1, where 1 corresponds to the current idleRenderTime input field |
|
|
isRendering |
sbool |
Current rendering state |