New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen Flickering when connected to external display on macOS #74098
Comments
Hi, having exactly the same problem as macintacos describes above. Tried the exploration build that bpasero linked, but the flickering still remains. I'm not 100% sure, but I think the problem escaleted on the latest 1.34.0 build. |
@macintacos please see #74098 (comment) |
@bpasero apologies, wasn't in my normal setup yesterday when you sent the initial comment. The exploration build appears to have worked for me! Any ideas when it will be available in the stable build? Or do I have to continue using the Exploration build for a long while? (I'd prefer not to actually use it for too long; not a fan of running beta builds on my production applications 😄) |
We aim for June/July. |
@bpasero When I run that Exploration build I see the following (see below). It indicates that the Exploration build is basically running the equivalent flags of
|
@bpasero Wanted to confirm that the Exploration build does not work, I still see flickering when I close and open the terminal pane. I don't think Electron 4.0+ fixes this problem. |
Using with an external Thunderbolt Display is fine with me. |
Are there any updates on this issue? I started seeing heavy flickering after upgrade to Mojave. Using 1.37.0-insider, and an external 4K Dell monitor over USB-C -> DisplayPort connector. It goes away if I set |
Unfortunately, I still see the same flickering using the exploration build. |
System: 15" MBP 2017, macOS 10.14.5, Radeon Pro 560 (4GB), Eizo EV2785 4K (USB-C/USB-C), vscode 1.36.1 Observations:
|
VS Code Version 1.36.1 (1.36.1) I can reproduce some observations of my previous post. Observations:
After trying a minute or so Side question: Is there actually now a setting that I can set inside vscode's JSON to avoid command line arguments? |
@bpasero Does using the flag @lukasbash @dehmer @dinvlad can you test with that flag
|
This seems to help! Not sure yet if it degrades performance in any way though. |
@alxgrtnstrngl It "seems" to work as well (same positive effect as I know that maybe nobody wants to hear this right now in this thread but, did you consider it to not be a vscode bug, but rather a macOS issue? I had a pretty long chat with a support agent today and we tried several things and nailed down a specific portion of steps:
The last thing I will now try, is to update the monitor's firmware (I am 99% sure that this is not the issue) and then I get back to apple's support. The case also went up to senior support in the meantime. |
While I’m definitely not at liberty to say you’re 100% wrong (because the bug could very well be a macOS issue), that fact that I’ve never in my life seen this flickering issue on any application other than VSCode is probably an indication that VSCode is doing something wrong, rather than the OS. |
Just another data point: |
In addition, without any flags, for me the issue appears in most if the circumstances listed above, however it also appears when the VS Code window is just maximized, not necessarily in full-screen. |
Is there any way we could see the “debug log” for VS Code UI itself, to try finding relevant errors? We can also check Console log on Mac OS, of course. |
Subtle flickering of individual components. Reliably occurs when the mouse hovers over file name and path at the top of the screen. Switching tabs triggers it as well. Erratically occurs in other components. Don't know if it's related but wanted to add my fairly unique setup to the list:
It only occurs for me when GPU rendering is enabled and the window is located on an external screen (HDMI or thunderbolt to HDMI). |
Does anyone have that flickering issue when scrolling? That's the issue I'm facing on my mac (macOS Catalina 10.15.6, Graphics: Intel HD Graphics 6000 1236 MB), but I've just figured out that it's not confined to vscode only. It also happens with WebStorm but it's much less pronounced on Atom, I'd say on Atom it's virtually invisible. And one more important note, I've googled through a ton of different sources and it seems to me that different people mean different things when talking about screen flickering. To me it looks like stroboscopic effect of some sort that only occurs when I scroll up or down. It does not happen in Google Chrome, it does not happen in Safari. Maybe someone had the same or similar issue? vscode info: Version: 1.47.3 |
I have the same issue when I try to toggle the terminal view. MacBook Pro (15-inch, 2019) Version: 1.48.2 |
I had the issue with VSCode 1.52 and MacOS 14.0. Open VSCode, cmd+shift+p, |
FWIW, I wanted to update this as there was an issue in Chromium that recently got closed because the issue was fixed by Apple in the latest betas of macOS 11. I think that perhaps when that is officially released, folks who were experiencing this issue should try running VSCode with all of the settings they had disabled to get this working properly and see if the issue re-emerges. |
Confirming the issue being present very pronounced on:
I am aware that this is likely very hard to debug but it's a real issue that blocks any work with VSCode on that hardware combo. |
Having this issue with a 2020 Macbook Pro 13".
OSX Big Sur 11.6 (20G165) |
I have just started seeing this problem. My env is:
I'm wondering if the issue is somehow related to my system reporting 2 graphics cards? |
I'm noticing this issue on Linux as well, particularly when switching to larger source files, and only when the window is maximized. by shrinking the window, the problem is instantly rectified. im using the --disable-gpu setting, to no avail. My environment is the following: |
My workaround for this issue was to change the Color Profile of the Extended display under macOS Display settings. |
@karatse what did you change it to? A generic "Display" or some specific profile that worked better than the one of your monitor. |
@nkuehn I believe it depends on each display and personal preference. For me one of the Dell options worked better. I have an Eizo display. |
It seems to me that some specific color is involved. A little fiddling with the contrast bar under accessibility > display made the flicker go away. IMG_0926-1.mov |
I have had flicker on my mac when opening images in Discord, although other Electron apps have reported that it does not occur. |
I started having the same issue after I update my 2021 MBP 14" (M1 Pro Processor) device to the MacOS Ventura. VSCode starts doing flickering at random times, usually I press enter to get to a new line, or when I leave it for a few seconds and then I come to write a letter there, it makes that 1 time flickering. It never happened on the last version of the Monterey. So this started after I updated to the Ventura, I do not know why... |
Had this same issue with 2021 14" MacBook Pro and Dell E2723HN displays. Fix: |
Unfortunately this did not resolve the problem on my side. MBP 2021 14" M1 Pro base model + ViewSonic 27" 1440p display (USB C connection) |
Thanks!! This works for me i have a MacBook Pro M1 Max |
The BenQ Knowledge Center provided a solution.
I don't think it's a VSCode-specific problem as far as I'm concerned, but I do get flicker under load while using VSCode. |
In my case, the only thing that worked was turning off hardware acceleration. Preferences: Configure Runtime Arguments, add |
Thank you @Gin-Quin 🙏 However, this is not the correct solution anymore. The setting that fixed it was // argv.json
{ "disable-hardware-acceleration": true } |
I am having the same issue in vscode's rendering of jupyter notebook. Is there any proper solution? Setting disable-hardware-acceleration to true makes fixes the problem, but makes vs code very laggy |
Issue Type: Bug
I have my MBP (docked, laptop lid closed) connected to an external 4K display, and the screen flickering is getting pretty obnoxious. Happens routinely when switching tabs. I tried disabling all extensions and running with
code --disable-gpu
and--ignore-gpu-blacklist
which didn't solve it in my testing. Any ideas on other workarounds?Ideally I'd want this fixed, and not need to open it from the command line every time.
VS Code version: Code 1.34.0 (a622c65, 2019-05-15T21:59:22.738Z)
OS version: Darwin x64 18.6.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (105)
(7 theme extensions excluded)
The text was updated successfully, but these errors were encountered: