Skip to content

Commit 5caf636

Browse files
committed
chore: draw performance indicator in debug overlay
1 parent 864de2a commit 5caf636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/draw_debug_overlay/draw_debug_overlay.gml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function draw_debug_overlay(){
5252
default: cwindow = string(window) break
5353
}
5454
yy = draw_debug_overlay_stack(xx, yy, "Open Note Block Studio v" + version)
55-
yy = draw_debug_overlay_stack(xx, yy, string(fps) + " FPS")
55+
yy = draw_debug_overlay_stack(xx, yy, string(fps) + " FPS (" + string_format(fps / game_get_speed(gamespeed_fps) * 100, 1, 0) + "%) ")
5656
yy = draw_debug_overlay_stack(xx, yy, "Window: " + string(cwindow))
5757
yy = draw_debug_overlay_stack(xx, yy, os_info[? condstr(os_type = os_windows, "video_adapter_description", "gl_renderer_string: GL_RENDERER")])
5858
yy = draw_debug_overlay_stack(xx, yy, "Display: " + string(window_width) + "x" + string(window_height))

0 commit comments

Comments
 (0)