mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
add fps hint
This commit is contained in:
@@ -65,6 +65,8 @@ def main():
|
||||
|
||||
if global_data.config["video"]["vsync"]:
|
||||
ray.set_config_flags(ray.ConfigFlags.FLAG_VSYNC_HINT)
|
||||
if global_data.config["video"]["target_fps"] != -1:
|
||||
ray.set_target_fps(global_data.config["video"]["target_fps"])
|
||||
ray.set_config_flags(ray.ConfigFlags.FLAG_MSAA_4X_HINT)
|
||||
ray.set_trace_log_level(ray.TraceLogLevel.LOG_WARNING)
|
||||
|
||||
|
||||
@@ -39,4 +39,5 @@ screen_width = 1280
|
||||
screen_height = 720
|
||||
fullscreen = false
|
||||
borderless = false
|
||||
target_fps = -1
|
||||
vsync = true
|
||||
|
||||
Reference in New Issue
Block a user