Netbooks... really slow with OGL... can someone help me with a solution?

View: New views
3 Messages — Rating Filter:   Alert me  

Netbooks... really slow with OGL... can someone help me with a solution?

by Hélder Gomes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I am a game programmer, and I live in a country where normal computer has configurations that remember netbooks (like having VIA or SIS chipsets...).
Because of that I started making a game using memory blitting instead of OpenGL, but I found that on X it runs really slow without OpenGL...

I was told that it is because you need to give a bitmap to X, that then copy it to the vram, even on fullscreen.
So in my mind the solution would be have direct access to the vram, I found out then the existance of XDGA...

But...

Does XDGA still exists? It is still shipped with X?
If the awnser to any of the previous questions are no (or if you want to awnser anyway), there are a alternative solution?

_______________________________________________
xorg mailing list
xorg@...
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Netbooks... really slow with OGL... can someone help me with a solution?

by Bugzilla from linuxhippy@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> I am a game programmer, and I live in a country where normal computer has
> configurations that remember netbooks (like having VIA or SIS chipsets...).
> Because of that I started making a game using memory blitting instead of
> OpenGL, but I found that on X it runs really slow without OpenGL...
> I was told that it is because you need to give a bitmap to X, that then copy
> it to the vram, even on fullscreen.
> So in my mind the solution would be have direct access to the vram, I found
> out then the existance of XDGA...
> But...
> Does XDGA still exists? It is still shipped with X?
> If the awnser to any of the previous questions are no (or if you want to
> awnser anyway), there are a alternative solution?

DGA is outdated, and usually no longer supported.

The typical way to do that stuff is to upload your contents into
pixmaps, and later blit those pixmaps using XRenderCompositePicture,
this way your bitmaps can even have alpha - very much like OpenGL.
Usually capable drivers will do the whole step on the GPU, if not
you'll end up in pixman's SSE2 optimized blitting routines.

If you need direct access to your contents using the CPU (for effects
or whatever), for large bitmaps it usually pays off to use the SHM
extension, have a loot at ShmPutImage (or whatever its called).
But I really recommend uploading your contents once, and later create
effects and whatever by simply using your pre-uplaoded pixmaps.

Good luck, Clemens
_______________________________________________
xorg mailing list
xorg@...
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Netbooks... really slow with OGL... can someone help me with a solution?

by Yann Droneaud :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le mercredi 28 octobre 2009 à 18:20 -0200, Hélder Gomes a écrit :
> Hello!
[...]
> If the awnser to any of the previous questions are no (or if you want
> to awnser anyway), there are a alternative solution?

I've posted a "benchmark" program, which test various method to update
window content:

http://lists.freedesktop.org/archives/xorg/2009-March/044498.html

Depending on your target hardware/driver (supporting SHM or not),
composite manager presence, etc., results will be very different.
You should carefully choose a method which almost work everywhere,
or use different strategies based on live tests.

Regards.

--
Yann Droneaud




_______________________________________________
xorg mailing list
xorg@...
http://lists.freedesktop.org/mailman/listinfo/xorg