HaikuArchives / ArtPaint

ArtPaint is a painting and image processing program.
https://haikuarchives.github.io/ArtPaint/
29 stars 18 forks source link

Rotate/Translate/Scale: Number of preview_render_threads correct? #452

Open humdingerb opened 1 year ago

humdingerb commented 1 year ago

I've installed Slayer and watch ArtPaint's threads while doing scaling (translating and rotating show similar behaviour, but much less so).

I see up to ~8 "preview_render_threads" popping into existence, together with a single "ImageView thread". Resizing the whole canvas, there's only the "ImageView thread". The canvas resizing is also much smoother than the scaling of the Edit menu. I was wondering, if there's everything going as planned here...

dsizzle commented 1 year ago

It's probably worth looking into.

The canvas resize is likely smoother because there's far less code involved when there's no selection. Dealing with the selection is kind of a pain. I'm sure there are opportunities to improve the performance.