PocketMatrix forums

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

how can i reduce the fliptime?

I develop a game based on my Hp ipaq2210, it use mediaq chips, i find the fliptime is about 16-17ms, its too long, & reduce my game's performance many more,is there some method to improve it?
I tried use 2 threads one for flip the memory buffer, one for handling the game logic & event, but it take no effect.
thanks for ur any advice!
If you're not already using PocketHAL, try that.
In won't work. http://pockethal.droneship.com/features.html

I don't think anything will work, it's just that mediaq who really sucks..

PS: You still have 450ms every second for other stuff :).

PPS: I wonder, is there any statistics, graphs or such, what devices are more on the market? I mean, it's very important to know how much devices will run my game at a full speed. Well, if I was Infinite Dreams, I'd rather created very very fast graph lib, but I'm not one of them, so I cant..
PocketHAL is especially good with MediaQ chips. This is where the biggest speed up is usually, unless your game is 3D.

The timings listed on that page are worst-case. Try it and you might be surprised at the speed up, even on MediaQ.
One of the wonderful things in life seems to be that the slower the core processor, the faster the flip time. Example, the Nokia 3650 has a 104MHz ARM, but the flip is nearly free. My Dell has a 400MHz but with the MediaQ, the flip sucks. The end results is that the Nokia phone almost runs our game as fast as the Dell. It is almost like the designers tried to help out the slower processors and handicap the faster ones. :)
Thierry wrote:PocketHAL is especially good with MediaQ chips. This is where the biggest speed up is usually, unless your game is 3D.

The timings listed on that page are worst-case. Try it and you might be surprised at the speed up, even on MediaQ.

my game is a video game, it means i must render a full screen for every frame, PHAL seems not work:-(
PocketHAL is usually used on games, that doesn't mean they have to update the screen every time.
chenjb wrote:my game is a video game, it means i must render a full screen for every frame, PHAL seems not work:-(


Please stop saying PocketHAL doesn't work, it works very well. Tons of games are using it. It was build *for* games. In fact, MediaQ chips is where the biggest gain is. The benchmarks you see on the web site are for 0.5.0. My bad for not updating them. Just give it a try.
It might sound obvious, but...

The quickest way to flip the screen on any device, is to only redraw the bits you need to.

Eg: Are you re-drawing things like status bars etc, even when they are not changed?

If you think your flip is bad, try a HP Jornada 680. It has a flip time of ~100ms (640x240). It will struggle to clear the screen at 10 fps with nothing else going on!!!

[edit]
(1/(17/1000)) = ~58.8. Not a VSync is it?
Thierry":2ew0euic]
yes PHAL is a good game lib! but i run newest version's minimal example on my ipaq2210, the fps is about 52, so it cant reduce the fliptime for my situation, i need redraw the whole screen for every frame.(like skyforce, its obvious it need update the whole screen for every frame)
Thierry":3p3ib89v]
yes PHAL is a good game lib! but i run newest version's minimal example on my ipaq2210, the fps is about 52, so it cant reduce the fliptime for my situation, i need redraw the whole screen for every frame.(like skyforce, its obvious it need update the whole screen for every frame)
chenjb wrote:yes PHAL is a good game lib! but i run newest version's minimal example on my ipaq2210, the fps is about 52, so it cant reduce the fliptime for my situation, i need redraw the whole screen for every frame.(like skyforce, its obvious it need update the whole screen for every frame)


Minimal is the worst case. Even a game like Skyforce would benefit from PocketHAL. You don't want to try it, then yeah, it won't help you.
http://www.pocketmatrix.com/forums/view ... 086#226086

You can see how significantly PHAL affects MediaQ performance, since the X5 is also a MediaQ device. (Those were my benchmarks, btw.)
Thierry":3k8r6imp]
ok , i'll give a try, thank u very much!!