-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(server_openvr): ✨ Add "Enforce server frame pacing" #2632
Conversation
actually I realized a bit too late, that 8ms fallback suould probably have been 1ms because now if a game runs at ie 6ms per frame, it'll get saddled with an 8ms wait every time and get worse performance. And 16ms turns to 24ms. |
I don't understand you reasoning. 8 ms is like 125hz. But now that I think about it, we should have left som room for the game render. so 1ms is probably the right thing to do |
Yeah the current enforced system rounds up to display Hz increments so that if game render is 8ms on a 100Hz HMD, it waits 2ms, so 1ms is technically a perf penalty but a very small one comparatively. Arguably the wait could be dropped to a yield if the game render is more than the display vsync interval. |
No wait, I pull that back. we do fall back to 8ms per frame only when the StatisticsManager is not initialized. so in those moments there is no load in the rendering loop. |
I think my original PR had an |
Ah. I think it's better if you make another PR with the final fix |
Yeah sure |
Oh, lol I guess I didn't have the 50ms thing separate |
This is exactly the same as the old "Optimize game render latency" but with a different name to make it more clear that you don't want to touch it unless you know what you are doing