From 1c890b867704166be33d6e7d247f31d1a00e00ab Mon Sep 17 00:00:00 2001 From: Jeffrey Kirchner Date: Wed, 31 Jan 2024 10:05:57 -0800 Subject: [PATCH] Update FPS to show during test mode. --- main/templates/subject/subject_home/the_stage/pixi_setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/templates/subject/subject_home/the_stage/pixi_setup.js b/main/templates/subject/subject_home/the_stage/pixi_setup.js index a218befe..28fc6cdf 100644 --- a/main/templates/subject/subject_home/the_stage/pixi_setup.js +++ b/main/templates/subject/subject_home/the_stage/pixi_setup.js @@ -160,7 +160,7 @@ setup_pixi_sheets: function setup_pixi_sheets(textures){ } - {%if DEBUG%} + {%if DEBUG or session.parameter_set.test_mode%} //fps counter let text_style = { fontFamily: 'Arial', @@ -202,7 +202,7 @@ game_loop: function game_loop(delta) app.scroll_staff(delta); } - {%if DEBUG%} + {%if DEBUG or session.parameter_set.test_mode%} pixi_fps_label.text = Math.round(pixi_app.ticker.FPS) + " FPS"; {%endif%}