Skip to content

Commit

Permalink
Update FPS to show during test mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreykirchner committed Jan 31, 2024
1 parent 3832027 commit 1c890b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/templates/subject/subject_home/the_stage/pixi_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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%}

Expand Down

0 comments on commit 1c890b8

Please sign in to comment.