From 30e90af2761354314681839ef19849ce8b2a6948 Mon Sep 17 00:00:00 2001 From: imterah Date: Fri, 27 Jun 2025 12:48:25 -0400 Subject: [PATCH] feature: Attempt to decrease load by decreasing max frame rate of window We don't really need to run at twice the speed of the display's refresh rate as Raylib manages the target time between frames well. --- app/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.go b/app/main.go index 239c49e..f84df7a 100644 --- a/app/main.go +++ b/app/main.go @@ -118,7 +118,7 @@ func mainEntrypoint(context.Context, *cli.Command) error { bufio.NewReader(os.Stdin).ReadBytes('\n') // Wait for Enter key press before continuing log.Info("Initializing XR headset") - rl.SetTargetFPS(int32(displayMetadata.MaxRefreshRate * 2)) + rl.SetTargetFPS(int32(displayMetadata.MaxRefreshRate)) rl.InitWindow(int32(displayMetadata.MaxWidth), int32(displayMetadata.MaxHeight), "UnrealXR") atexit.Register(func() {