Re: Enabling Hardware acceleration in existing framebuffer driver
From: Keith Williams <hidden>
Date: 2008-07-04 16:34:24
The fillrect acceleration is probably used but rarely. One sure way to trigger it is to issue the "clear" command on the frame buffer console. Try "time clear" on a big resolution screen with and without your change. You should see a difference from few to few tens times in speed. The more useful is both the copyarea and imageblit acceleration. Both are used during console scrolling (the imageblit is preferred but on some cards the copyarea is faster). I don't know about the DirectFB so I cannot comment.
Thanks for the reply. The fillrect was the simplest to implement. I agree that the others will be much higher value. In DirectFB there are a set of benchmarks that run through all of the different drawing types including filled rectangles. That is what I am using as my baseline. However, even with the above code I don't see a change in the benchmark numbers leading me to believe that the acceleration is not being used. Additionally, fbset shows accel to be false. Even if I do a "fbset -accel true", it still reports false. This is why I don't believe that the acceleration is being picked-up. Any other ideas with the driver code/things that I am missing? Thanks, Keith ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08