Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: glurex on Tue 21/02/2023 00:03:35

Title: VSync with D3D9/OpenGL
Post by: glurex on Tue 21/02/2023 00:03:35
This maybe it's a silly question but... Is there any way in game to set VSync true/false with D3D9 or OpenGL? (System.VSync only works with Software Render)

I know I can set this from the editor (Default Setup), but it would be nice if the user can change it via a GUI inside the game.   
Title: Re: VSync with D3D9/OpenGL
Post by: Khris on Tue 21/02/2023 12:14:00
The manual says

"Not all renderers support changing vsync at runtime. If current one does not, then trying to change System.VSync will have no effect."

So if it doesn't work with the hardware renderers, then there's no way to do it.
Title: Re: VSync with D3D9/OpenGL
Post by: Crimson Wizard on Tue 21/02/2023 20:08:58
This was done in the experimental branch, but now added to 3.6.0 in the latest update.
https://www.adventuregamestudio.co.uk/forums/ags-engine-editor-releases/ags-3-6-0-release-candidate-rc1/msg636653570/#msg636653570
Title: Re: VSync with D3D9/OpenGL
Post by: glurex on Tue 21/02/2023 22:01:16
Quote from: Crimson Wizard on Tue 21/02/2023 20:08:58This was done in the experimental branch, but now added to 3.6.0 in the latest update.
https://www.adventuregamestudio.co.uk/forums/ags-engine-editor-releases/ags-3-6-0-release-candidate-rc1/msg636653570/#msg636653570

Wow thanks, CW! I'll be testing it. I'm on 3.5.1 but that's an excellent reason to "migrate" to 3.6.0.