You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: Just thought that it is important to mention that the SVG file using in the repro contains anime and can be potentially NSFW. This ticket is not a troll, and the image is taken from an example in another library that performs the same function as skia-canvas.
When I resize my SDL window it reduces FPS a lot when SVG is loaded. Haven't check if this applies to other image formats as well.
When the window opens, I see ~40 FPS. When extend the size of the window, it reduces to ~24 FPS. I tried with @napi-rs/canvas as well, and with that library I'm always getting ~60 FPS.
If you want to compare, I have also created a branch which runs same code in @napi-rs/canvas which you can find here.
I tried skia-canvas' own Window, and I'm getting ~60FPS there. But I'm not able to figure out how to draw exactly as in the examples above where the things I'm draw don't scale when window is resized.
The text was updated successfully, but these errors were encountered:
ajitid
changed the title
Scaling window reduces FPS a lot when SVG is loaded
Properly sending skia-canvas' buffer to other windowing program
Apr 21, 2025
Warning: Just thought that it is important to mention that the SVG file using in the repro contains anime and can be potentially NSFW. This ticket is not a troll, and the image is taken from an example in another library that performs the same function as skia-canvas.
When I resize my SDL window it reduces FPS a lot when SVG is loaded. Haven't check if this applies to other image formats as well.
To reproduce:
bun install
bun run main.ts
When the window opens, I see ~40 FPS. When extend the size of the window, it reduces to ~24 FPS. I tried with @napi-rs/canvas as well, and with that library I'm always getting ~60 FPS.
If you want to compare, I have also created a branch which runs same code in @napi-rs/canvas which you can find here.
I tried skia-canvas' own Window, and I'm getting ~60FPS there. But I'm not able to figure out how to draw exactly as in the examples above where the things I'm draw don't scale when window is resized.
I'm not sure if something like this is at play here.
The text was updated successfully, but these errors were encountered: