Friday, August 18, 2006

compiz

As I said in the previous blog post I am using compiz on my MacBook. It's kind of funky in a good way, even though I prefer the less glizzy OS X window manager which is also based on OpenGL.

While playing around with the Flash Player I noticed that Xorg-air was using quite a bit of CPU, along with FireFox itself. Now this is not completly unexpected, but switching to metacity confirmed my fears: The X11 shm extension might not work well or at all with AIGLX/compiz, meaning it probably spends a lot of time copying data to the GPU on each frame we pass to X11. Here are the two different tops testing the same content (and no, changing the active windows makes no change):





I'll try to debug that further once the player is more stable, for now we have to live with this. Hopefully there is an option to fix it up in the AIGLX/compiz code in a way that it uses DMA transfers to the GPU and only uploads parts of the image (usually by using glTexSubImage2D).

Don't get the idea that we can use OpenGL in the plugin for Linux, last time I checked the Netscape plugin API had no access to an OpenGL context for Unix targets. If anyone wants to do the work for Unix they are welcome, we would certainly use it and save a lot of CPU time with it if it's correctly done. It will soon be possible on OS X, Josh Aas from the Mozilla foundation is working on it and Tim Omernick from Apple has already started extending the WebKit to support CoreGraphics and OpenGL (look for his changes in WebKit/JavaScriptCore/bindings/npapi.h). This support will be required for 64bit targets and Leopard since QuickDraw is going away for good.

6 Comments:

Anonymous Anonymous said...

It a good thing that you noticed this. By the time the final Flash 9 for Linux is released, I'm sure many more people will be using XGL/Compiz or AIGLX/Compiz than are using it now. It's definitely something that needs to be dealt with.

Sunday, August 20, 2006 11:33:00 AM  
Anonymous Anonymous said...

from the hostname of your computer, I can say that you're using Ubuntu :P

Tuesday, August 22, 2006 5:44:00 AM  
Anonymous Anonymous Coward said...

>from the hostname of your computer, I can say that you're using Ubuntu :P

And beacuse of the window border theme, and because the ugly firefox logo, and beacuse he said it before!

Anyway, Windows vista is nearer, and 64-bit versions of it too. More and more people have amd64 processors. Plus, you said:
This support will be required for 64bit targets[...]
talking about a current work about OpenGL stuff.

This means that flash for 64-bit processors is nearer? Maybe the next year, some months after flash 9.0 for 32-bits? I don't want to hustle yoy, but DO IT NOW!!!

Tuesday, August 22, 2006 10:13:00 AM  
Anonymous Anonymous said...

Nice to see that a new flash version for linux is being developed. It seems that the people behind gnash (a gnu licensed flashplayer) use OpenGL for their player. They use SDL or the GtkGLExt.

Thursday, August 24, 2006 11:14:00 AM  
Anonymous Anonymous said...

Does the fact, that it will run with Webkit, mean that it will run with konqueror also?
Because at the moment there is the attempt to get these two together where it is possible to share a codebase as large as possible.

Ok, unlikely, because konqueror just reuses the netscape bindings - but it would have been funny :)

Saturday, August 26, 2006 9:24:00 AM  
Anonymous <a href="http://drugscenterhere.com">ShopMan</a> said...

I like articles like this. Thanks!

Saturday, August 25, 2007 11:48:00 PM  

Post a Comment

<< Home