add fps hint

This commit is contained in:
Anthony Samms
2025-09-03 23:09:49 -04:00
parent b25558b8d4
commit 1f01ff3343
2 changed files with 3 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ def main():
if global_data.config["video"]["vsync"]: if global_data.config["video"]["vsync"]:
ray.set_config_flags(ray.ConfigFlags.FLAG_VSYNC_HINT) 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_config_flags(ray.ConfigFlags.FLAG_MSAA_4X_HINT)
ray.set_trace_log_level(ray.TraceLogLevel.LOG_WARNING) ray.set_trace_log_level(ray.TraceLogLevel.LOG_WARNING)

View File

@@ -39,4 +39,5 @@ screen_width = 1280
screen_height = 720 screen_height = 720
fullscreen = false fullscreen = false
borderless = false borderless = false
target_fps = -1
vsync = true vsync = true