BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Moonlight Leaps Ahead of Silverlight with Hardware Accelerated Pixel Shaders

by Jonathan Allen on Nov 24, 2010 |

Hardware Acceleration is a major topic these days. With CPU speeds barely increasing each year and high powered graphics cards coming standard on most computers, rendering complex user interfaces on the CPU seems downright stupid. But for cross-platform frameworks like Silverlight, the expense of building out DirectX support and then doing it all again for OpenGL hasn’t been worth it to Microsoft. So while WPF enjoys a UI that is almost entirely rendered on a GPU, Silverlight primarily uses highly optimized software rendering.

Recently David Reveman added hardware rendering to Novel’s Moonlight. Using Moonlights CPU rendering, one demo got between 2 and 9 frames per second. With acceleration turned on, the rate was increased to a range of 29 to 35 FPS. These ranges for CPU and GPU rendering are comparable to a Windows machine running Silverlight.

The real win for Moonlight is when you turn on custom shaders. Since Silverlight doesn’t accelerate most pixel shaders, turning them on during the demo dropped it down to around 11 FPS. Moonlight, on the other hand, continued to run around 30 FPS.

In addition to pixel shaders, Miguel de Icaza reports that Moonlight can use hardware acceleration for applying 3D transforms to any Silverlight objects (drawings, images, videos) and the rendering of surfaces by pre-caching the contents on hardware textures.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT