From 3c9c206af259868395bd030cae94c4d913a6e429 Mon Sep 17 00:00:00 2001 From: Dimava Date: Sat, 13 Jun 2020 23:29:17 +0300 Subject: [PATCH] restore debug.disableAsserts --- src/js/core/config.local.js | 9 +++++++++ src/js/game/dynamic_tickrate.js | 2 +- translations/base-en.yaml | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/js/core/config.local.js b/src/js/core/config.local.js index eede078b..9dd955fe 100644 --- a/src/js/core/config.local.js +++ b/src/js/core/config.local.js @@ -47,6 +47,15 @@ export default { // Disables the dialog when completing a level disableUnlockDialog: false, // ----------------------------------------------------------------------------------- + // Speed ups the game at the cost of not checking obvious things. + debug_disableInternalCheckTile: false, + // ----------------------------------------------------------------------------------- + // Speed ups the game at the cost of not checking obvious things. + debug_disableGetTileAsserts: false, + // ----------------------------------------------------------------------------------- + // Speed ups the game at the cost of not checking obvious things. + debug_disableBeltAsserts: false, + // ----------------------------------------------------------------------------------- // Disables the simulation - This effectively pauses the game. disableLogicTicks: false, // ----------------------------------------------------------------------------------- diff --git a/src/js/game/dynamic_tickrate.js b/src/js/game/dynamic_tickrate.js index e9979494..aef0bc24 100644 --- a/src/js/game/dynamic_tickrate.js +++ b/src/js/game/dynamic_tickrate.js @@ -75,7 +75,7 @@ export class DynamicTickrate { decreaseTickRate() { const desiredFps = this.root.app.settings.getDesiredFps(); if ((G_IS_DEV && globalConfig.debug.renderForTrailer) || globalConfig.debug.disableDynamicTickrate) { - this.setTickRate(Math_round(Math_max(desiredFps, this.currentTickRate * 0.8))); + this.setTickRate(Math_round(Math_max(desiredFps, this.currentTickRate * 0.8))); return; } diff --git a/translations/base-en.yaml b/translations/base-en.yaml index f889f9e0..ea8d876c 100644 --- a/translations/base-en.yaml +++ b/translations/base-en.yaml @@ -747,6 +747,21 @@ settings: description: >- Disables the dialog when completing a level # ----------------------------------------------------------------------------------- + debug_disableInternalCheckTile: + title: DEBUG / disable Internal Check Tile + description: >- + Speed ups the game at the cost of not checking obvious things + # ----------------------------------------------------------------------------------- + debug_disableGetTileAsserts: + title: DEBUG / disable Get Tile Asserts + description: >- + Speed ups the game at the cost of not checking obvious things + # ----------------------------------------------------------------------------------- + debug_disableBeltAsserts: + title: DEBUG / disable Belt Asserts + description: >- + Speed ups the game at the cost of not checking obvious things + # ----------------------------------------------------------------------------------- debug_disableLogicTicks: title: DEBUG / disable Logic Ticks description: >-