Forum Discussion
ScottieBizzle
10 years agoExplorer
Turning off VSync with 0.8 SDK
My engine runs its rendering and simulation passes at different frequencies since some simulations require running 150+ iterations per second, yet the rendering only needs say 60 frames per second. ...
ScottieBizzle
10 years agoExplorer
"cybereality" wrote:
I don't think there is an option to disable V-Sync any longer.
But does your simulation really need to run at 150fps? Can you make it framerate independent?
Yes unfortunately for many simualtions like smooth particle hydrodynamics, fluid dynamics or fur for example you need a pretty small time step so the simulation doesn't blow up, and ideally the time step should not fluctuate or at least have a minimal ( stable ) rate. I'm guessing turning of V-Sync isn't the ideal solution anyway so I'll try to find a work around like running the simulation multiple times per frame as owenwp suggested, I just think this will result in hitching if I want or need a simulation rate that is not a perfect multiple of 75hz. For 150 I'd just run the simulation twice per rendered frame, but if I wanted 120, I'd have to double up simulation steps every 5 of 8 frames which I can see causing a problem since the steps need to be the same length.
Same problem I'm guessing will happen if I multi-threaded.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago
- 2 months ago