Spherical forums

Sphere Development => Sphere General => Topic started by: Radnen on March 13, 2014, 05:51:57 pm

Title: No more vsync
Post by: Radnen on March 13, 2014, 05:51:57 pm
Have you guys ever ran into the problem where Sphere can no longer vsync? I have the option turned on but I still see screen-tears. Furthermore, under vsync the fps usually drops to 60, but on my computer it's just not doing that. I don't know why it's not working. Any ideas?
Title: Re: No more vsync
Post by: N E O on March 13, 2014, 06:07:22 pm
Which version on what OS using what video driver?
Title: Re: No more vsync
Post by: Radnen on March 13, 2014, 07:07:10 pm
Windows 7 sp 1 with latest Nvidia drivers (I have a gtx 560ti). But I don't think it's a graphics hardware issue, right? I'm not running Sphere in GL mode, but who knows maybe Nvidia has something to do with screen refresh. I'll try to dig around on the internet for anything relating to this.

Edit: it appears from multiple posts on Nvidia forums that the latest rivers may in fact cause vsync issues.
Title: Re: No more vsync
Post by: Flying Jester on March 13, 2014, 10:02:57 pm
VSync is (definitely in OpenGL, I would assume in DX and DD) completely up to your video card driver. I know that with OpenGL, you can only set the attribute and hope for the best. In addition, you can ovberride the setting of vsync from applications in the driver's configuration utility.

Does SphereGL have these issues in fullscreen? Sphere GL in fullscreen, for reasons unknown to me, is the only time it will run in doublebuffered mode.
Title: Re: No more vsync
Post by: Radnen on March 13, 2014, 10:29:44 pm

VSync is (definitely in OpenGL, I would assume in DX and DD) completely up to your video card driver. I know that with OpenGL, you can only set the attribute and hope for the best. In addition, you can ovberride the setting of vsync from applications in the driver's configuration utility.

Does SphereGL have these issues in fullscreen? Sphere GL in fullscreen, for reasons unknown to me, is the only time it will run in doublebuffered mode.


Usually vsync only works in full screen. But in my case going to full screen seems to not have any affect. The vsync check-box is checked in the options, so it should work but doesn't.

I could do a more accurate test in SSFML and see if it's vsync is working or not. The nvidia issue doesn't seem to be consistent. It only affects some things, apparently Vanilla Sphere being one of them.
Title: Re: No more vsync
Post by: Flying Jester on March 13, 2014, 10:32:07 pm
It probably also matters how exactly an application asks for vsync.
Title: Re: No more vsync
Post by: Radnen on March 13, 2014, 11:42:41 pm

It probably also matters how exactly an application asks for vsync.


You are right, there was an override and it was set to always turn off vsync. But that's strange since I never touched any overrides - ever. Just a few days ago I tried vsync and it worked normally. Nvidia keeps changing these little things and changing your overrides each time I update the driver. I did update the driver in the last couple of days and I suspect that is the culprit.

So, for future reference if anyone else is having this issue: check your driver settings and make sure vsync wasn't automatically disabled for all or some of your apps.
Title: Re: No more vsync
Post by: Flying Jester on March 14, 2014, 02:06:04 am
Or you could use FJ-GL. Because of how it's built, so long as you have OpenGL 3.x or greater, it will never have tearing =P
Title: Re: No more vsync
Post by: Harry Bo21 on June 30, 2014, 12:32:47 am
I had the same issue. I only found it because of your post (Nvidea Geforce 650 TI)