lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
282 stars 27 forks source link

Weird flickering when resizing editor #45

Closed JacksonKearl closed 2 years ago

JacksonKearl commented 3 years ago

I had notebook.png open from here: https://github.com/JacksonKearl/vscode-handydandy-notebook, when I resize the editor (by dragging the sidebar border around, for instance), I sometimes see a weird flicker where the image disappears and the entire editor area fills with the transparency checkmark. recording (12)

Tyriar commented 3 years ago

I've never seen this, my guess is that the canvas clearing is happening due to the resize and then rerender on next animation frame skips for some reason.

lramos15 commented 3 years ago

I see something similar, but the whole webview flashes white

Tyriar commented 2 years ago

I think this is dependent on hardware and pretty sure I can't do anything about it, it's just the time it takes to render the first frame after resize kills the canvas texture.