Talk:Smedia Glamo 3362

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Blitting Test doesn't work with hardware acceleartion)
 
Line 1: Line 1:
Blitting Acceleration with X11 did not work. Wrote a sample programm to test it. It blits 32x32 tiles on 640x480. Speed is ca. the same as in SDL which uses software blitting. Its around 12 FPS. On my Ubuntu Desktop X11 there were 50%+ cpu using during SDL software blitting and 20% cpu usage during XLib hardware blitting using the same code (just other bits per pixel, 24 on desktop 16 on freerunner).
+
Blitting with hardware acceleration is only supported in xlib '''NOT''' in SDL. The Size of the tiles should be big. I used 128x160 in a 640x480 resolution. Speed tests:
  
Maybe I did something wrong like color spaces etc. Here is my source. Maybe someone can look over it. We have to say cleary what works and what not. Some programmers get angry when they trust a documentation and find out that is it wrong and their code wont work the way they want. Maybe we have to change this page and tell the people the accelerated blits dont work or that there some restrictions / dependencies. Link to source: [http://astabs.de/playground/xblit.tar.gz]
+
SDL:  32x32 tiles -> 13 FPS
 +
      128x160 tiles -> 3 FPS
 +
 
 +
 
 +
xlib: 32x32 tiles -> 12-13 FPS
 +
      128x160 tiles -> 35 FPS
 +
 
 +
You can try it for xlib. Scale bg.png up an down. You will notice the difference
 +
Link to source: [http://astabs.de/playground/xblit.tar.gz]
  
 
----
 
----

Revision as of 21:52, 27 July 2010

Blitting with hardware acceleration is only supported in xlib NOT in SDL. The Size of the tiles should be big. I used 128x160 in a 640x480 resolution. Speed tests:

SDL: 32x32 tiles -> 13 FPS

     128x160 tiles -> 3 FPS


xlib: 32x32 tiles -> 12-13 FPS

     128x160 tiles -> 35 FPS

You can try it for xlib. Scale bg.png up an down. You will notice the difference Link to source: [1]


Personal tools

Blitting with hardware acceleration is only supported in xlib NOT in SDL. The Size of the tiles should be big. I used 128x160 in a 640x480 resolution. Speed tests:

SDL: 32x32 tiles -> 13 FPS

     128x160 tiles -> 3 FPS


xlib: 32x32 tiles -> 12-13 FPS

     128x160 tiles -> 35 FPS

You can try it for xlib. Scale bg.png up an down. You will notice the difference Link to source: [1]