vsync problem

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
molul
Party member
Posts: 264
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

vsync problem

Post by molul »

For some reason, vsync doesn't seem to work on my game. I have this in my conf.lua:

Code: Select all

function love.conf(t)
	t.screen.width = 1280
	t.screen.height = 720
	t.screen.fullscreen = false
	t.screen.fsaa = 8
	t.screen.vsync = true
	t.console = true
end
, and while the rest of the variables work fine, the screen doesn't refresh properly (there is this "line" continously moving from the bottom to the top of the window/screen when the camera moves horizontally). I'm getting constant 60fps, so I don't think it's a matter of performance. Could you please tell me if I'm doing something wrong? Thanks in advance.

Using Löve2D 0.7.2, by the way.
rvj
Prole
Posts: 15
Joined: Fri Feb 10, 2012 5:55 pm

Re: vsync problem

Post by rvj »

I don't have any good ideas about your problem but just in case it helps:

success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa )

setMode has a parameter for vsync so if you set the mode somewhere in your script, you might have accidentally turned it off.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: vsync problem

Post by Boolsheet »

If the framerate gets limited to 60 fps it's a good sign that LÖVE succesfully told the OpenGL driver to turn vsync on. It's up to the driver and the screen to display the image at the right time. I have this issue too (sometimes) and I suspect my display does something wonky.
Shallow indentations.
User avatar
molul
Party member
Posts: 264
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

Re: vsync problem

Post by molul »

rvj wrote:I don't have any good ideas about your problem but just in case it helps:

success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa )

setMode has a parameter for vsync so if you set the mode somewhere in your script, you might have accidentally turned it off.
Thanks, rvj. That fixed the vsync problem, but now the fsaa doesn't work lol. Should I report it as a bug?

EDIT: LOL, now I've returned to my previous approach (using conf.lua instead of love.graphics.setMode and everything is working perfect O_o
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot], Semrush [Bot] and 15 guests