* Decreases the tick rate marginally
()
| 76 | * Decreases the tick rate marginally |
| 77 | */ |
| 78 | decreaseTickRate() { |
| 79 | if (G_IS_DEV && globalConfig.debug.renderForTrailer) { |
| 80 | return; |
| 81 | } |
| 82 | |
| 83 | const desiredFps = this.root.app.settings.getDesiredFps(); |
| 84 | this.setTickRate(Math.round(Math.max(desiredFps / 2, this.currentTickRate * 0.8))); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Call whenever a tick began |
nothing calls this directly
no test coverage detected