Startup and canvas render window resize that updates devicePixelRatio is expensive #955
Closed
Description
After #938
Repro:
- Launch xterm.js
- Open demo
- Start performance timeline
- Press cmd/ctrl and + 3 times
The reason this happens is because it redraws the char atlas, that's also the reason the time gets greater the more cmd/ctrl + is pressed (more pixels). This could be done using OffscreenCanvas
and web workers for browsers that support?