Skip to content

Commit d83f6ba

Browse files
FPS logging no longer works :-/
1 parent 868cfc1 commit d83f6ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

draft_code/saved_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ def log_callback(level, log_str):
601601
global fps_buffer
602602
# Convert log_str to string if it's a bytes object
603603
log_str = log_str.decode() if isinstance(log_str, bytes) else log_str
604+
# Optional: Print for debugging
605+
#print(f"Level: {level}, Log: {log_str}")
604606
# Log message format: "sysmon: 25 FPS (refr_cnt: 8 | redraw_cnt: 1), ..."
605607
if "sysmon:" in log_str and "FPS" in log_str:
606608
try:
@@ -610,8 +612,6 @@ def log_callback(level, log_str):
610612
fps_buffer[0] = fps
611613
except (IndexError, ValueError):
612614
pass
613-
# Optional: Print for debugging
614-
#print(f"Level: {level}, Log: {log_str}")
615615

616616
# Register log callback
617617
lv.log_register_print_cb(log_callback)

0 commit comments

Comments
 (0)