Skip to content

Integrated terminal unusable when GPU acceleration enabled #163936

Description

@devsterj

Type: Bug

The integrated terminal gets garbled with multiple cursor block characters and spaces randomly all over the terminal and portions of text disappear/reappear on terminal input/output, making text often unreadable -- especially when entering commands. Resizing the terminal forces a redraw which clears the erroneous characters, but the problem reoccurs as soon as something is typed or a command produces text output.

Here's a short video demonstration of the problem:

vsc-gpu.mov

I can only use the terminal if I set "terminal.integrated.gpuAcceleration": "off". The other options (auto/on/canvas) result in the same problem. Turning off the GPU acceleration is not the ideal solution as it dramatically slows down the terminal text rendering with older CPUs.

This started first happening when VSC was updated around early 2022, but no updates since have fixed the issue so far. Due to the Electron/Chromium framework, I wonder if this might be related to a problem some Chrome users running on MacOS High Sierra (including me) started reporting in 2022 -- Google Docs editor rendering glitches that occur unless the disable-accelerated-2d-canvas flag is set or the hardware acceleration option totally disabled. Not sure if Nvidia Geforce 320M and similar older display adapters are somehow a factor in these glitches.

VS Code version: Code 1.72.2 (d045a5e, 2022-10-12T22:16:30.254Z)
OS version: Darwin x64 17.7.0
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz (2 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: disabled_off
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 4, 3, 3
Memory (System) 8.00GB (0.17GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
vscode-intelephense-client bme 1.8.2
path-intellisense chr 2.8.1
shell-format fox 7.2.2
vscode-taskexplorer spm 2.9.1

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions