VSYNC + Screen Tear

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

VSYNC + Screen Tear

Post by racarate »

Hey everyone,

I've been using LOVE lately and I can't figure out how to get rid of my screen tear.

What precisely is setting vsync in love.graphics.setMode() supposed to do?
Is that only important for capping your maximum framerate?

I notice tearing most obviously with visual effects that only take one frame (attached, hit 'j' or 'k').


-Nick


P.S. I'm really enjoying using 0.8., thanks to everyone who contributed!
Attachments
channel_59.love
Example of tearing, hit 'j' or 'k' to fire effect.
(337.77 KiB) Downloaded 201 times
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: VSYNC + Screen Tear

Post by kikito »

Are your graphic drivers up to date?
When I write def I mean function.
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

Re: VSYNC + Screen Tear

Post by racarate »

Yeah, I'm pretty sure they are although I am on an old machine (Thinkpad T40p) running Ubuntu. I wouldn't mind digging in to help solve this, but I'm unsure of what the intended behavior of love.graphics.SetMode() is with respect to vsync.


-Nick
User avatar
mickeyjm
Party member
Posts: 237
Joined: Thu Dec 29, 2011 11:41 am

Re: VSYNC + Screen Tear

Post by mickeyjm »

I see no tears, i think it might be your graphics card
Your screen is very zoomed in...
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

Re: VSYNC + Screen Tear

Post by racarate »

Ok, thanks for taking a look.


-Nick
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: VSYNC + Screen Tear

Post by bartbes »

Note that not all drivers respect vsync, in fact, I know that in the nvidia drivers for both windows and linux you can set an override for vsync (both force on and force off).
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests