Stuttering in windowed mode

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
jayleshan
Prole
Posts: 1
Joined: Mon Feb 15, 2016 10:49 pm

Stuttering in windowed mode

Post by jayleshan »

I saw a couple other discussions on this issue but didn't see a solution. Whenever i run a program in windowed mode on Windows 10 the movement constantly stutters, however it runs perfectly fullscreen. Is there a way to solve this?
adjustfloor424
Prole
Posts: 1
Joined: Wed Oct 19, 2016 9:51 am

Re: Stuttering in windowed mode

Post by adjustfloor424 »

Facing the same thing and there is nothing I can't find to solve this.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Stuttering in windowed mode

Post by zorg »

If i remember the past discussions correctly, there was talk about how Windows 7's aero compositor not playing nice with Löve in windowed mode, and disabling aero solved the issue...
On the other hand, windows 10 always has it's compositor on, last i heard; no idea what one could do about this... maybe someone more knowledgeable can give a better answer.
Also, microstuttering can sadly be caused by a myriad of things, for example, on win7, having the program "f.lux" running, or even running the Google Chrome browser. Multi-monitor setups can also be buggy with different refresh rates and having vsync on in löve.
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.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Stuttering in windowed mode

Post by raidho36 »

In Windows vsync synchronizes output to first monitor specifically, so you gonna get tearing and/or stuttering on other monitors, since monitor refresh rate is nearly always slightly off the round number and any two monitors pretty much guaranteed not to sync. That's one of the reasons freesync exists.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Stuttering in windowed mode

Post by zorg »

raidho36 wrote:In Windows vsync synchronizes output to first monitor specifically, so you gonna get tearing and/or stuttering on other monitors, since monitor refresh rate is nearly always slightly off the round number and any two monitors pretty much guaranteed not to sync. That's one of the reasons freesync exists.
Not really true, from my win7 experience anyway; vsync in löve uses the refresh rate of the screen it's currently "on"... which works most of the time, though there are cases where either SDL or something else reports a very wrong refresh rate (i have a screen that reports 4 FPS for some reason, which makes a vsynced love project update and render four times a second).
That said, from what i read about freesync, it needs support from both monitors and gpu-s, and i haven't seen any nvidia ones in the list, also, i do believe it'll only work with a specific kind of DisplayPort connector as well... for people that use VGA/DVI/HDMI, they're s.o.l.

I did forget to ask, jayleshan, adjustfloor424, does it stutter only if vsync is enabled, or have you tried turning vsync off in your conf.lua?
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.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Stuttering in windowed mode

Post by raidho36 »

It is known to be the case because it was an extremely prominent issue with DK2 which had 75Hz refresh rate and in extended mode with vsync enabled it stuttered and juddered like absolute hell because it was synced to wrong framerate. If it's a difference between 59.985Hz and 59.990 Hz then a single mis-sync will only appear every 30 seconds and so may not be visible. They then went on with developing so-called "direct mode" that sidesteps desktop manager altogether so the issue is no longer relevant to it, but I wouldn't know if it's actually solved.

NVidia uses its own proprietary G-sync which bumps up compatible monitors cost by solid $100 or more (at least that used to be the case) and is now pretty much a dead technology.
User avatar
RadioactiveGears
Prole
Posts: 6
Joined: Sun Oct 23, 2016 8:16 pm
Location: Denmark
Contact:

Re: Stuttering in windowed mode

Post by RadioactiveGears »

I am having stuttering issues on a 75Hz freesync monitor, it's pretty annoying. Sometimes it goes away randomly and sometimes it comes back after going away but not always. It's weird.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: Stuttering in windowed mode

Post by D0NM »

i have this issue on a 60Hz monitor

I used to profile the game. It looks as a pretty random thing.
On reading this topic I see the same problem for everyone V__V
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
RadioactiveGears
Prole
Posts: 6
Joined: Sun Oct 23, 2016 8:16 pm
Location: Denmark
Contact:

Re: Stuttering in windowed mode

Post by RadioactiveGears »

D0NM wrote:i have this issue on a 60Hz monitor

I used to profile the game. It looks as a pretty random thing.
On reading this topic I see the same problem for everyone V__V
I noticed it doesn't happen on my laptop, which is odd. But yeah it's a pretty serious issue
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests