Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954000 - app-editors/vscode Add --enable-features=WaylandLinuxDrmSyncobj
Summary: app-editors/vscode Add --enable-features=WaylandLinuxDrmSyncobj
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Adel KARA SLIMANE
URL: https://wiki.hyprland.org/Nvidia/#fli...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-18 18:49 UTC by Jim Tupper
Modified: 2025-04-24 10:59 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Tupper 2025-04-18 18:49:23 UTC
On Hyprland specifically, vscode is a hot mess of flickering and horrific artifacts that make it unusable.

However, it turns out that including this magic flag seems to clear all of that up, so I'm suggesting to add it to the default launch flags. I'd be happy if it was enabled with another use flag, if wanted I can try to submit a pull request for it.


Reproducible: Always

Steps to Reproduce:
1. Install Hyprland & vscode on an nvidia based system running proprietry drivers
2. Launch vscode using the default .desktop entry
3. Try to edit a significant file, any non-trivial source file with intellisense should trigger it
Actual Results:  
Flickering, getting worse with use but never being ok.

Expected Results:  
Smooth and steady performance. No flashes, no flickering, no old frames popping up (which is a weird thing to say about a text editor, but there we go).


This might be specific to Hyprland, but Hyprland is a supported environment now.
There might be other systems that would benefit from this, like vscodium.
Maybe discord? although I've not had any problems with discord recently.

All these things seem to rely on a heavy amount of luck as to whether you're affected, and if so, how badly.

I'm very happy to have this as an extra use flag, I'm also happy to submit a PR for this if requested.
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2025-04-20 06:52:16 UTC
(In reply to Jim Tupper from comment #0)
> On Hyprland specifically, vscode is a hot mess of flickering and horrific
> artifacts that make it unusable.
> 
> However, it turns out that including this magic flag seems to clear all of
> that up, so I'm suggesting to add it to the default launch flags. I'd be
> happy if it was enabled with another use flag, if wanted I can try to submit
> a pull request for it.
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Install Hyprland & vscode on an nvidia based system running proprietry
> drivers
> 2. Launch vscode using the default .desktop entry
> 3. Try to edit a significant file, any non-trivial source file with
> intellisense should trigger it
> Actual Results:  
> Flickering, getting worse with use but never being ok.
> 
> Expected Results:  
> Smooth and steady performance. No flashes, no flickering, no old frames
> popping up (which is a weird thing to say about a text editor, but there we
> go).
> 
> 
> This might be specific to Hyprland, but Hyprland is a supported environment
> now.

Not sure if hyprland is supported as you say. It depends on maintainers and upstream. I don't use hyprland, so I don't plan to actively support it, but if a flag fixes it I'm happy to add it as long as there is no regression.

> There might be other systems that would benefit from this, like vscodium.
> Maybe discord? although I've not had any problems with discord recently.

Sadly, on KDE, it now works worse for me with this option. I don't really understand the inner workings of Rendering, so maybe the better solution is for you to override the value (for example by using .local/share/applications).

> All these things seem to rely on a heavy amount of luck as to whether you're
> affected, and if so, how badly.
> 
> I'm very happy to have this as an extra use flag, I'm also happy to submit a
> PR for this if requested.
Comment 2 Jim Tupper 2025-04-24 10:59:48 UTC
Fair enough, I guess it is a bit black-candles and sacrifices to find the right combination of flags on a certain system.

I'll just close this