vscode-riscv-venus
vscode-riscv-venus copied to clipboard
[Bug] Excessively high CPU usage when writing to LED matrix leading to system freeze
It should come as no surprise to anyone that drawing on the LED matrix, as it currently stands, is extremely slow. Just to give you an example, it took ~30.2s on my machine just to draw a simple 59×49 (=2891 pixels) little picture, which means each pixel takes ~10ms to be drawn. This is not the worst I've ever seen though, considering that I've previously used a simulator where each pixel took 30ms to be drawn on the canvas. That being said, i wouldn't mind much about this slowness problem if it weren't for other more serious issues.
When drawing to a much larger LED matrix (496×496), memory usage increases by as much as 500MB (!!) and CPU usage spikes at 100%. At some point, it becomes impossible to pause or even stop the simulation, until the system freezes completely and i have to reboot my computer.
= System info = OS: Linux x64 6.1.25-1-MANJARO VSCodium Version: 1.77.1 RISC-V Venus Simulator v1.7.0 Electron: 19.1.9 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 Sandboxed: No