VS Code 1.149’s Experimental GPU Renderer Can Blur Text and Misplace the Cursor
Microsoft released Visual Studio Code (VS Code) 1.149 on December 2, U.S. time. It includes an experimental GPU renderer written in Rust and compiled to WebAssembly.
The default renderer previously used DOM elements to draw the editor. The new renderer draws using the GPU, reducing the CPU time needed to render each frame during operations such as scrolling.
Microsoft compared the two renderers on an M5 Pro MacBook Pro with a 120 Hz display. In benchmark results published December 2, U.S. time, both reached 120 fps while scrolling a typical file, but the new renderer used 27% less CPU time.
In files with long lines and word wrap disabled, CPU time fell by 57%. Microsoft says the DOM renderer has to handle many elements when displaying long lines.
Frame rates also diverged in a case that drew a lot of information and refreshed the entire view. Microsoft displayed code in a window the size of a 5K display, using 10-pixel text, visible whitespace, bracket-pair guides, inline hints, and thousands of highlighted search matches. Both renderers reached 120 fps when scrolling normally, with the new renderer using half the CPU time. When testers dragged the scrollbar to repeatedly replace the entire contents of the view, the new renderer held 115 fps against 68 fps for the DOM renderer.
Microsoft also ran a test with the window's main thread throttled to one-quarter of its normal speed to approximate a less powerful PC. In that test, the DOM renderer reached 43 fps and the GPU renderer reached 114 fps.
GPU time also decreased when scrolling typical files and files with long unwrapped lines. It increased in the test that drew an entirely new view every frame.
VS Code 1.149: experimental GPU rendering performance
| Action or test condition | Standard DOM rendering | Experimental GPU rendering |
|---|---|---|
| MacBook Pro(M5 Pro・120Hz) | ||
| CPU time while scrolling | ||
| Typical file | Baseline | 27% lower |
| Long lines without wrapping | Baseline | 57% lower |
| Dense 5K-sized view | Baseline | 50% lower |
| Frame rate (fps) | ||
| Typical file | 120 | 120 |
| Dense 5K-sized view (scrolling, fps) | ||
| Normal scrolling | 120 | 120 |
| Dragging the scrollbar | 68 | 115 |
| Main thread at 1/4 speed | 43 | 114 |
| GPU time vs. DOM rendering | ||
| Typical file | Baseline | Lower |
| Long lines without wrapping | Baseline | Lower |
| Full view refresh each frame | Baseline | Higher |
| Dense 5K-sized view: 10 px text, visible whitespace, bracket guides, inline hints, and thousands of highlighted search results | ||
Blurry text and subpixel rendering
Windows users running VS Code 1.149.0 have reported problems after enabling the new renderer. In a setup with window.zoomLevel set to 3.5, text appeared blurry and punctuation overlapped adjacent characters. Double-clicking a word could highlight the wrong range, and spaces between words sometimes disappeared.
A Surface Laptop 4 user with Intel Iris Xe Graphics and Windows scaling set to 150% also reported that text blurred as soon as GPU rendering was enabled. Another user at 125% scaling reported a difference from the old antialiasing, which smooths character edges.
VS Code 1.149: display and editing issues with experimental GPU rendering
| Context | Symptom or difference |
|---|---|
| Text antialiasing on supported Windows and Linux LCDs | |
| Standard DOM rendering Subpixel antialiasing | Adjusts red, green, and blue separately |
| Experimental GPU rendering Grayscale antialiasing | Adjusts each pixel Text may appear blurry |
| Some Windows systems with GPU rendering enabled | |
| Window zoom level 3.5 | Blurry or overlapping text Spaces disappear Word selection misaligned |
| Surface Laptop 4 150% display scaling | Blurry text |
| 125% display scaling | Different text antialiasing |
| Japanese and other full-width characters mixed with ASCII 125% display scaling | Cursor appears inside a half-width character Selection does not align ASCII-only lines unaffected in this setup |
| Another setup | |
| Half-width characters only | Cursor misalignment Occurs with multiple fonts |
| Mac comparison test (renderer 0.0.6) | |
| Kana kerning | Kerning not applied Following character shifts right 0.84~2.25px |
| CSS color swatches Some underlines | Not displayed |
| Some font settings | Settings not applied |
| Multiple code points form one character (e.g., Thai) | Click places cursor within the character Typing inside splits the character |
| Switch renderer: editor.experimentalGpuAcceleration | |
| off (default) | Return to DOM rendering |
| on / editorView | Select experimental GPU rendering Includes existing on settings |
| GPU renderer fails | Falls back to DOM rendering Until reload |
At 9:37 p.m. UTC on December 2, a VS Code developer explained why the text looks blurry. In 1.149, setting editor.experimentalGpuAcceleration to either on or editorView selects the new @vscode/editor-view renderer.
Microsoft merged a change into the 1.149 development branch that maps on, which previously selected the older GPU renderer, to the new engine. The setting itself carries over, so users who already had it set to on switch to the new renderer when they upgrade to 1.149.
The previous DOM renderer used subpixel antialiasing on Windows and Linux. On compatible LCDs, controlling the red, green, and blue elements of a pixel individually lets the renderer draw character edges at finer than one-pixel resolution.
The new renderer uses grayscale antialiasing, calculating how much of each pixel a character covers. The developer attributed the apparent blur to that difference and said the new renderer needs subpixel antialiasing support.
The developer planned to investigate overlapping characters, misaligned word selections, and missing whitespace separately.
The cursor can shift on lines containing Japanese text
At 1:50 a.m. UTC on December 3, a user reported cursor misalignment on lines mixing full-width characters such as Japanese text with half-width Latin letters and digits. The user ran VS Code 1.149.0 on Windows with GPU rendering enabled and display scaling set to 125%. They used JetBrainsMonoNL Nerd Font at 12.8 and set the window zoom level to 0.9. They also enabled the setting that treats full-width characters as two cells wide.
In that setup, moving the cursor to the end of a line could make it appear in the middle of a half-width character. The selection endpoint could also fail to align with the cursor. Lines containing only ASCII characters were unaffected on the reporter's system, and disabling GPU rendering corrected the alignment.
At 5:44 a.m. UTC on December 3, another user reported misalignment even on ASCII-only lines. Switching from Explex to HackGen or Meiryo did not help. Toggling the experimental syntax highlighting setting editor.textMateWebAssembly had no effect either.
When writing Japanese comments in code or editing a document that mixes Japanese and English, cursor placement tells the user where characters will be inserted or deleted. Even a purely visual offset can make the actual editing position hard to judge.
Keeping rendering fast and accurate
On December 1 UTC, developers published a comparison of DOM and GPU rendering. In tests on a Mac Retina display, the new renderer did not apply kana kerning, which adjusts spacing for particular character combinations. Because it handled the shape and placement of characters such as kana individually, the following character appeared 0.84 to 2.25 pixels farther to the right than with DOM rendering.
The test used renderer version @vscode/editor-view 0.0.6. Developers also found that color swatches next to CSS color values went missing and that some underlines and font settings were rendered incorrectly.
In scripts such as Thai, where multiple code points can combine into one visible character, clicking could set the insertion point inside that character. Typing there would insert another character between the code points that form it.
Users who encounter rendering issues in VS Code 1.149.0 can set editor.experimentalGpuAcceleration to its default value of off to return to DOM rendering. Microsoft says VS Code also falls back to DOM rendering until the window reloads if the GPU renderer fails in a window.
Reducing CPU work so the editor can scroll smoothly through large amounts of code is worthwhile. Microsoft's published performance measurements come from macOS. On Windows and Linux, it makes sense to judge speed alongside text clarity and the accuracy of cursor placement on the system being used.
Release the scrollbar, read the code, move the cursor, and fix one character. Smooth scrolling improves daily work when that one character can be edited exactly where intended.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
