Menu

#1 improve _zoomSurfaceY speed

closed
nobody
None
5
2011-12-04
2011-08-30
-=Y=-
No

i find out that replacing `sp += (*csax) * (flipx ? -1 : 1);` from line 589 by `sp += (*csax)` and adding new line `csax*= (flipx ? -1 : 1);` after 559, improve greatly speed of that function.
i think that `_zoomSurfaceRGBA` have similar problem that can be solved by removing redundant operation (that dont depend on row position in graphic) from inner loop.

Discussion

  • ferzkopp

    ferzkopp - 2011-12-04

    Thanks! Fixed for _zoomSurfaceY, but the _zoomSurfaceRGBA algorithm has changed and does not need to be fixed anymore like this.

     
  • ferzkopp

    ferzkopp - 2011-12-04
    • status: open --> closed
     

Log in to post a comment.