Re: [svg-developers] improve performance suggestions

2011-05-23 Thread Erik Dahlstrom
On Sun, 22 May 2011 20:38:53 +0200, Andreas paw...@web.de 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: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] improve performance suggestions

2011-05-23 Thread Stanimir Stamenkov
Sun, 22 May 2011 18:38:53 -, /Andreas/:

 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?

I've tried it with IE 9 and the flashlight movement appears very 
smooth (but later realized IE 9 might not render it completely 
correct).  I've also asked on mozilla.dev.tech.gfx 
http://groups.google.com/group/mozilla.dev.tech.gfx/msg/1aeded9639183eff:

 Mon, 23 May 2011 09:30:59 +1200, /Robert O'Callahan/:

 Almost certainly slow mask performance. SVG masks aren't GPU-accelerated
 currently.

-- 
Stanimir




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[svg-developers] improve performance suggestions

2011-05-22 Thread Andreas
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?





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/