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?
Change Vsync without Exiting FullScreen?
- dizzykiwi3
- Citizen
- Posts: 58
- Joined: Tue Jan 14, 2014 2:03 am
Change Vsync without Exiting FullScreen?
Last edited by dizzykiwi3 on Sun Sep 24, 2017 4:57 pm, edited 1 time in total.
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Change Vsync without Exiting FullScreen?
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 True 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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests