I made a second example and use your script: http://labs.pixelfans.de/svgflashlight/coloredfinch2.svg The performance it better...but it seems to me, that the problems is in the filter definitions.
Thank you for helping. --- In [email protected], "Erik Dahlstrom" <ed@...> wrote: > > On Sun, 22 May 2011 20:38:53 +0200, Andreas <pawelf@...> wrote: > > > I made a liitle SVG to simulate a Flashlight in the dark: > > http://labs.pixelfans.de/svgflashlight/coloredfinch.svg > > > > It works, but the performance is bad (i listen my CPU 8) ) > > Do you have any suggestion for me to improve this? > > Try to use fewer (or less expensive) filters and avoid opacity if you can. > E.g removing the opacity here: > <use xlink:href="#gmainbird" style="opacity:0.4; filter:url(#fsprings)" /> > makes it run a bit better (and I couldn't really see much of a difference). > > Here's another example: > > http://xn--dahlstrm-t4a.net/svg/masking/crouching-tiger.svg > > which is a slight remake of this example: > > http://xn--dahlstrm-t4a.net/svg/presentations/svgdemos/mask-move.svg > (Note: uses <svg:video> element, so probably only works in Opera) > > and here's a variant that uses foreignObject and HTML5 video as a fallback > (works in Firefox and Opera): > > http://xn--dahlstrm-t4a.net/svg/masking/video-masking.svg (try clicking > and moving the mouse around) > > > > -- > Erik Dahlstrom, Core Technology Developer, Opera Software > Co-Chair, W3C SVG Working Group > Personal blog: http://my.opera.com/macdev_ed > ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

