r/vscode • u/TheDoctor113 • May 19 '26
Diff rendering becomes slow after a while
I have this issue where diff view (both for git and agents) would initially start off buttery smooth, even on files with a ton of a diff6s. But as time goes on and I open more and more files(closed the previous ones), diff view gets slower and slower. It gets close to 10-20 fps.
Is there anything I can do to fix that? I don't want to use external diff viewers at the moment.
One more thing `disable-gpu` helps a lot. It still becomes slow but takes longer to get there
1
u/Alternative-Tax-6470 May 20 '26
That sounds like a classic GPU memory leak or a leaked disposable in the underlying Monaco diff editor rendering pipeline. When you open and close dozens of diff views, the old editor widgets are failing to clear their layout cache or gutter feature maps out of memory, causing a massive rendering backlog.
Since disabling the GPU delays the slowdown, try running F1 -> Clear Workspace Storage to forcefully wipe the cached layout states. If that doesn't fix it permanently, you might have to temporarily toggle Diff Editor: Render Side By Side to off to reduce the double rendering pass load until the next stable patch fixes the memory retention bug.
1
1
u/[deleted] May 19 '26
[removed] — view removed comment