linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.56k stars 742 forks source link

5.6.8 flipping not working but it does work in Cinnamon 5.2.7 #11642

Open rado84-github opened 1 year ago

rado84-github commented 1 year ago
 * Cinnamon version: 5.6.8
 * Distribution: Arch Linux
 * Graphics hardware and driver used: GTX 1660 Ti, 525.89.02
 *64 bit
 * Attach ~/.xsession-errors, or /var/log/syslog: no such file exist

Issue

When you enable application profiles in nvidia-settings, you can see the FPS of a game or a program and along with it another line which indicates the state of flipping. If it's working, the second line should be all green, reading "FLIP - VSYNC ON". But instead it reads "BLIT - VSYNC ON" which means that flipping isn't working.

Steps to reproduce

  1. Create an app profile to display FPS (profile name GLShowGraphicsOSD=true) and then create a rule for any native linux game (for instance: [procname] eurotrucks2 and add the created profile name).
  2. Run the game and observe the top left corner. It will have a red word "BLIT" in it: blit

Expected behaviour

Flipping should be always working

Other information

I had reported similar stuff in the past year or so but now I can't find the other report. It may have been removed, IDK. But recently I discovered something which I think is important: flipping worked just fine on Cinnamon 5.2.7 before you removed metacity. I decided to downgrade for a while to see how other things will behave and noticed that flipping works perfectly fine with Cinnamon 5.2.7. So apart from the missing metacity, whatever else is different between 5.2.7 and 5.6.8, it might be the reason flipping isn't working anymore.

SparkyBluefang commented 1 year ago

Cinnamon 5.4 was a major re-base on a much newer version of mutter (Cinnamon is a fork of GNOME 3, so it's based on mutter, not metacity). It's possible that this was an intentional change in mutter, or something was overlooked/broken in the re-base.

My uninformed guess is that (some) full-screen windows are being composited instead of direct rendered. Check that System Settings -> Preferences -> General -> Disable compositing for full-screen windows is enabled. However, that didn't change anything for me, so something else might be going on or it might not be properly detecting all types of windows appropriately.

rado84-github commented 1 year ago

I just changed ETS2 to "Windowed borderless" but flipping still didn't work. Cinnamon 5.2.7 used to have metacity, but they removed it in 5.4. Can I downgrade mutter to a version that was available in 5.2.7? IDK what mutter is, so IDK whether downgrading it won't break the desktop, that's why I'm asking. I wanna see if flipping will work with a on older version of mutter.

kodatarule commented 1 year ago

Mutter is the compositor of Gnome, Muffin is the fork which Cinnamon uses. Perhaps there is something which changed the behavior and does not suspend it when the app is fullscreen/windowed-fullscreen/borderless.

EDIT: Since you mentioned ETS2(Which also has native linux version) - if you do use the native one, have you tried if it is the same with Proton ? Does this occur on any other games(native+wine/proton) or it is limited to native ?

Additionally it is also possible(on multi monitor setup) to not trigger the flipping path(which is used when enabled g-sync), this is not an issue with Cinnamon, it's just when the window doesn't cover the whole desktop area(which xorg considers all monitors as one big screen), it won't trigger the flipping path.

rado84-github commented 1 year ago

EDIT: Since you mentioned ETS2(Which also has native linux version) - if you do use the native one, have you tried if it is the same with Proton ? Does this occur on any other games(native+wine/proton) or it is limited to native ?

It used to work partially (for some Windows games) but during the months since the last report and maybe 2 or 3 Cinnamon versions even that stopped working and now flipping doesn't work for ANY game. I tried Windowed Borderless, Windowed, Fullscreen - still doesn't work.

And I'm using only one monitor.

artik commented 6 months ago

Hi @rado84-github Did you figure out how to fix this? Or even a workaround? I'm facing the same issue (As all cinnamon / nvidia users I think). Not having Gsync working is quite weird.

cbupdd commented 2 months ago

The issue is still ongoing. A workaround for wine/proton: · Disable "Allow window manager to control the windows" in winecfg.