PocketMatrix forums

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

Q. about Mirroring

Hi,

I'm currently using Mirroring with BltFast. I noticed that it takes quite a bit of time if you have several blits with mirror.

Since I'm using square tiles inmy game, would I get the same speed increase by writing my own mirror as I did with writing a SquareRotate() function for the blits?

Using a Square rotate I was able to speed the blit up considerably by rotating the tile to a buffer first, then drawing that buffer instead of the original tile.

Is the mirroring optimized? Is it worth optimizing? Anything I can do to reduce the number of tiles in the game is a big plus for this project.

Thanks!
Mirror is optimized. The problem is that GapiDraw have to read or write the pixels in the wrong way, effectively disabling the read or write cache. So it will be much slower. I would recommend that you mirror your surfaces as copies beforehand.
Thanks!

you mention the read and write cache. Is the a place to learn about these? I knew nothing about that, and I feel that it's an important issue.

Or maybe you can shed some light on how they work?

Thanks a lot!