3 ms·
VS Code is like the absolute greatest Electron app that has ever, or will ever be written. And yet it had an issue for quite some time where animating the curs
by thrower123 5y ago
VS Code is like the absolute greatest Electron app that has ever, or will ever be written.
And yet it had an issue for quite some time where animating the cursor flashing was taking an enormous percentage of CPU.
- pjmlp 5y agoIt is also one that has big chunks of C++ and Rust code, and WebGL based rendering to make it actually usable.
- 0-_-0 5y agoOh you can do that with Electron? This is not my area of expertise... Are there any other ways to have GPU acceleration?
- pjmlp 5y agoHere how WebGL is used for the terminal in VSCode, https://github.com/microsoft/vscode/issues/85971 https://github.com/microsoft/vscode/issues/85971 Or how Rust is used for search via ripgrep. https://github.com/microsoft/vscode-ripgrep https://github.com/microsoft/vscode-ripgrep
- bool3max 5y agoRendering webpages is already GPU-accelerated by default in most browsers and platforms.
- greggturkington 5y agoTo be fair it was partially related to a bug in Chromium, and was fixed in 2017 https://github.com/Microsoft/vscode/issues/22900 https://github.com/Microsoft/vscode/issues/22900