Change Vsync without Exiting FullScreen?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
dizzykiwi3
Citizen
Posts: 54
Joined: Tue Jan 14, 2014 2:03 am

Change Vsync without Exiting FullScreen?

Post by dizzykiwi3 » Sun Sep 24, 2017 4:39 am

Hey all

Is there any way to change the vsync setting of the window mid game without calling love.window.setmode, which, if in fullscreen, will cause the screen to close and reopen? (at least on a mac anyway)

Also as a side note, is there a way to get the refresh rate of a monitor?
Last edited by dizzykiwi3 on Sun Sep 24, 2017 4:57 pm, edited 1 time in total.

User avatar
zorg
Party member
Posts: 1914
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Change Vsync without Exiting FullScreen?

Post by zorg » Sun Sep 24, 2017 3:40 pm

For the second question, yes; 0.9.2 added a refreshrate field to the table returned by love.window.getMode, that returns (or at least tries to return) the refresh rate of the screen your löve program is on at that time.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests