HaikuArchives / TheAwesomeResizer

Allows quick dynamic resizing of any translator-supported image.
1 stars 4 forks source link

High CPU usage when redrawing smooth-scaled image #9

Open humdingerb opened 6 years ago

humdingerb commented 6 years ago

Maybe the high CPU usage when resizing, compared to ShowImage, is the same reason for this:

Watch the CPU usage with ActivityMonitor spike. It isn't when smooth-scaling is deactivated. Is it filtering the whole image everytime the waved window reveals a formerly hidden area of the image?

janus2 commented 6 years ago

The scaling is expensive was implemented in that way for a reason...

janus2 commented 6 years ago

I forgot the view is double buffered so even more expensive