[Webkit-unassigned] [Bug 48212] New: SVG FELighting performance issues

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 24 14:28:31 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=48212

           Summary: SVG FELighting performance issues
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: krit at webkit.org
                CC: zimmermann at kde.org, zherczeg at webkit.org,
                    mdelaney at apple.com


FELighting has some performance issues.

The most obvious issue is the -> operator for the get and set calls on CanvasPixelArray. The ByteArray is ref counted, so we have to use this operator on every read or write operation. This can be avoided by using a ByteArray pointer instead of the CanvasPixelArray like on the other effects.

The other big perf issue if FloatPoint3D.
The most time is spend on setPixel and mainly in the normalize() function of FloatPoint3D. normalize() makes three divisions and a dot product of itself. The dot product seems really slow and calls x() y() and z() on every call. Can we speed this up? Can't we write a selfDot function? Is it possible to avoid the call of normalize() more?

Other issues depend on the kind of Lighting effect and are located at the update functions.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list