[Tuxpaint-devel] Rush, trying to improve speed
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Pere P. i C. <per...@gm...> - 2022-10-02 00:13:39
|
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. 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. Please test, there are still some things to tweak, feel free to play around. Thanks Pere |