Added throttling outside of window focus and update Engine threads to extend a generic thread

This commit is contained in:
Halbear 2026-05-16 18:03:20 +01:00
parent 2f626ba00f
commit 71d3cd400b
11 changed files with 325 additions and 155 deletions

View file

@ -8,13 +8,17 @@ display_height=480
display_width=640
#Engine Core Settings
#the precision of frames, set this to 16000 and it will limit the whole engine to 64FPS
#the precision of frames, set this to 16000000 and it will limit the whole engine to 64FPS
frame_accuracy=0
throttle_on_unfocus=true
throttle_accuracy=500000000
#event tick rate for game process
master_tick_rate=120
main_thread_tickrate=120
fast_thread_tickrate=240
cap_main_to_tickrate=false
cap_master_to_tickrate=false
cap_main_to_tickrate=true
cap_fast_to_tickrate=true
#Renderer Properties
Debug_Shaders = false