PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Are GapiDraw functions optimized, please?

Could I kindly ask if the blit and another critical functions are optimized within GAPIDraw? One of reasons I consider PocketHAL is that I hope, I could draw faster Blit, AlphaBlending, and transparency routines, that would allow me to put more graphics in the shorter time on the PocketPC display.

Therefore, i would like to ask, if enough attention was put by GAPIDraw developer, to get maximum from Blit algorithms, or if there is any room for improvement. I don't see the GAPIDraw code so it difficult to evaluate.

One idea would be using memcpy(); to copy memory blocks, to move 32bits instead of 16bits in single CPU cycle, or to use fixed point math and bit-shifts, to get as fast output as possible.

Thank you and with regards,
Rene.
Hi Rene,

You will find some information on this page:

http://www.develant.com/gapidraw-features.php

Just scroll down a bit...

To answer your question shortly: Yes, GapiDraw is both very optimized as well as very generalized. It includes Template Meta programming in C++, assembler code optimizations, operating on multiple pixels simultaneously, lookup tables, fixed point maths, and much much more.

Cheers
Johan
Yes, of course, I have read all that information before asking. Although this information seemed to me a bit old, and I have read few people claiming, that GAPIDraw performance droped a bit, as the version 3.0 appeared.

Indeed thank you for ensuring me about the speed of GapiDraw routines.
Bunkai wrote:I have read few people claiming, that GAPIDraw performance droped a bit, as the version 3.0 appeared.


This was actually true, but we bumped it up again in 3.01. :-)

If you check the release notes for GapiDraw 3.01, there is a note that says:

"Win32: Performance improvements! In GapiDraw 3.0 some of the performance was lost due to cross-platform re-design for the Palm and Symbian platforms. In GapiDraw 3.01 we put extensive work in bringing this performance back, and GapiDraw 3.01 is now the fastest GapiDraw ever (up to 100% faster than GapiDraw 3.0 in many operations)"

Cheers
Johan
Yes, I have read that, however, not the information that it is 100% faster somewhere.. :-) Thank you for information..

Have a nice evening,
Rene.