Re: [Tuxpaint-devel] Rush, trying to improve speed
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2022-10-04 05:46:42
|
On Sun, Oct 02, 2022 at 02:13:30AM +0200, Pere Pujal i Carabantes wrote: > Hi all, > > Trying to improve the speed of the Rush magic tool I've noticed that using rotozoomSurface() increases the speed of the tool to the double, while this is a great improvement, Rush is still too slow in > big drawings, so I've tried another approach to get a dynamic zoom, basically scaling and alpha blitting over, and now it gets a decent speed. > > Please test the attached patch and see if it does what Rush is meant to do. I think it's great. It's worth the performance increase. Thanks so much! > The patch exposes rotozoomSurface as api->rotate_scale() to the magic tools and uses it in the Rush tool. > If adopted, I think we should also update the magic api version. Yes, definitely. I'll work on that now. (I was planning on it, but currently cannot find any ticket for that. Maybe it was a FIXME in the code somewhere?) > Please test, there are still some things to tweak, feel free to play around. I think my main complaint is that things vanish into 'infinity' in the center a little too easily, when zooming out. When zooming in, it's very nice. I can see some fun animations being made with that effect, too! -bill! |