PocketMatrix forums

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

MediaQ based devices and Gapidraw (sorry, yet again)

Hi all,

My code takes about 15 ms/frame on a HP H1910 device, clunking along at 200Mhz. On a spanking H5450 400 Mhz it takes about 35 ms/frame. I gathered from so many other posts that this is a MediaQ issue on the H5450.

This post isn't about how to write efficient graphics code for the MediaQ.

Rather it is question as to weather the Viktoria Institue have any plans in terms of making Gapidraw work efficiently on MediaQ based devices?

I understand, naturally, that there is a ton of hardware out there and considering the fact that I am still using the evaluation/free version of Gapidraw, it is pretty audacious to expect anything.

Hence, here's to hoping rather than demanding/requesting. I find the biggest strength about Gapidraw is how little "hardware" I need to know and how much I can focus on just making my game. Being able to do my game on a PC and having it work on a PPC comes a strong second, which is why I have come to view Gapidraw as "DirectX for PocketPCs". I do not know what hardware runs underneath, and I would rather not care.

So I was hoping to hear it straight from the horse's mouth here. Are there plans to make Gapidraw on MediaQ based devices work faster or do I need to consider alternatives?

Thanks in advance
Bjørn
As I understand it, this is an inherit limit of the hardware in these devices. As such, there isn't anything to be done from a GD perspective.

Check out the info on PocketHAL on the PocketFrog forum. Thierry has managed to get a slight increase, but it's still a substantial problem.

I'm pretty sure Johan and Co. would do something if they could, but there's not really anything TO do. I know there are some monor improvements to be made, but if the hardware takes 35ms to do the swap, there's no code in the world that's going to change that.

(I'm wishing and hoping along with you in any case :) )
One way to get around this problem is to introduce partial framebuffer updates, something that is not currently supported by GapiDraw.
While it would not benefit games that update entire playground with every frame it would certainly help apps that do rely on dirty rectangles based updates.
As fzammetti says, there really isn't much to do when it comes to blitting to MediaQ devices.

What you can do (in a graphics library) that improves performance on MediaQ devices are:
1. Always read and write data as 32-bit values (2-pixels simultaneously). This will give a significant performance improvement. GapiDraw does this, many others do not.
2. Always alpha blend using 32-bit operations. GapiDraw supports this as long as both source and destination blits are performed on even coordinates.

We are looking at supporting dirty rects in an upcoming release. It's on the todo list and it will be there sooner or later. So will MediaQ devices also I'm afraid.. :(
[quote="Johan"]
As fzammetti says, there really isn't much to do when it comes to blitting to MediaQ devices.
[/quote="Johan"]

Agreed. MediaQ just sux for direct access graphics.

[quote="Johan"]
What you can do (in a graphics library) that improves performance on MediaQ devices are:
1. Always read and write data as 32-bit values (2-pixels simultaneously). This will give a significant performance improvement. GapiDraw does this, many others do not.
2. Always alpha blend using 32-bit operations. GapiDraw supports this as long as both source and destination blits are performed on even coordinates.
[/quote="Johan"]

Wrong. The MediaQ bus is 16 bits and quite slow. Whether you use 16 bits or 32 bits access doesn't make a difference.
Hi again,

Thanks for all your replies; valued input by far.

But am I not right to assume that a MediaQ based device with enough VRAM could be much faster if you placed all your sprites/tiles/whatever in VRAM and just blit between that VRAM? It is a matter of the size of VRAM on the MediaQ based devices and where your other graphics are placed, yeah?

Given the info in your replies, would it be correct to say that all MediaQ device owners have come to expect slow graphics and there's just very little you can do? Or is there just very little you can do "inside" Gapidraw?

What I mean is, is it a fair position to say: "I'm sorry, your device is just plain ol' slow", as opposed to "I'm sorry, I couldn't be bothered to look into optimizing my game for your handheld"?
Whoops, just found this thread. Sorry, didn't mean to stir the hornets' nest. I'll shut up now.[/url]
But am I not right to assume that a MediaQ based device with enough VRAM could be much faster if you placed all your sprites/tiles/whatever in VRAM and just blit between that VRAM?


This is correct. But unfortunately MediaQ devices don't have enough VRAM.

Wrong. The MediaQ bus is 16 bits and quite slow. Whether you use 16 bits or 32 bits access doesn't make a difference.


I know.. I just meant that you have to look for performance optimizations in other places when using MediaQ devices, such as between sprite surfaces and backbuffer if they are both stored in sysmem...