Page 1 of 1

Change Vsync without Exiting FullScreen?

Posted: Sun Sep 24, 2017 4:39 am
by dizzykiwi3
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?

Re: Change Vsync without Exiting FullScreen?

Posted: Sun Sep 24, 2017 3:40 pm
by zorg
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.