PocketMatrix forums

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

very slow PHAL flip times on ASUS 696 wm6

I have ASUS A696 (XScale 416Mhz), and my backsurface flip (display->Update()) time is about 30-31ms and its very-very slow. On other older/slower device this time only max. 5-15ms.

Maybe the wm6 slows down the graphic driver (?), because I compared some A696 SPB benchmarks and on wm5 the results were 10-15 times faster the graphic tests. (I didnt find wm6 results - only mine)
I have posted a logging version of PocketHAL 1.0.3 in this thread: http://pocketmatrix.com/forums/viewtopic.php?t=27591

Can you download it, build your app with it and run it on your Asus A696? This will create a log file in the root of your device's filesystem. Please post that log file here.

The Asus A696 is supposed to run WM5, not WM6.

Thanks!
Kzinti wrote:I have posted a logging version of PocketHAL 1.0.3 in this thread: http://pocketmatrix.com/forums/viewtopic.php?t=27591

Can you download it, build your app with it and run it on your Asus A696? This will create a log file in the root of your device's filesystem. Please post that log file here.

The Asus A696 is supposed to run WM5, not WM6.

Thanks!


Thanks, I'll try logging version and post it.

BTW my Asus A696 is purchased in september from ASUS dealer with preinstalled ASUS wm6 (english version) (News about wm6 from ASUS) - had no choice.
Thanks for the info. I didn't know they shipped it with WM6.

We will start with the log and figure it out.
I tried the logging version... seems everything ok
please, check the attachment,

Thanks
Attachments:
Log_PHAL.txt (2 KB)
The minimal.exe (flips green and red bg) has only 30fps.

I noticed in SPB benchmark at "DDB bitblt test" (flips two pictures X times) in portrait mode took 31ms in landscape mode took only 2ms (very fast flips)... I dont know what this means, but maybe help you.

Thanks
This is interesting. The GETRAWFRAMEBUFFER values are all over the place:

Width = 181684
Height = 240
xPitch = 269079816
yPitch = 146648
Framebuffer = 46600480

Only the height and framebuffer address look valid. Because of this, PocketHAL skips the driver and uses GAPI instead (that is buffered!)

I will do more research / thinking.
Sounds like GETRAWFRAMEBUFFER is deprecated / unsupported in WM6.

I have some idea how to work around that, I'll get back to you asap.

The fact that it uses GAPI on WM6 explains why it is much slower in landscape mode.
Thank you for dealing with my problem...
any progress? or dead thread...
I am a bit busy at this time. But I am still working on it.
oh, thx, good to hear
I will need to implement a DirectDraw driver to solve the issue. I should be able to do that over the weekend.
I've already spend many hours on this and I am having a hard time getting DirectDraw to behave properly.

Changing the shell orientation causes the primary surface to be lost (expected), but I seem unable to recover from it. ISurface::Restore() succeeds, locking the surface succeeds, but then the display doesn't update anymore and my device is frozen.

Just lettting you know I am still working on it.
thank you very-very much, I sent little donate :D

"The Ultimate Answer to Life, The Universe, and Everything"

I sux nowadays with the datatype misalignmet in vs2005 (ok I know the __unaligned keyword and struct alignment setting, but these dont solve always vs2005-ARM compiler bug)...
OK. I got DirectDraw to behave properly on my HTC Touch (WM6 device). Please download this and give it a shot on the Asus A696.
Attachments:
PocketHAL_ARM_DDRAW_Test.zip (70 KB)
THIS WORKS!

The backbuffer flip is ultra fast now 1-2ms (earlier it was +30ms only the flip). Congratulation!

thx-thx

good work
Good to hear!
The next PocketHAL release will contain this?
I'd like to put it in the next release, yes. I am a bit concerned with the stability of it. It works on my HTC Touch and your Asus A696, but that's pretty much all that was tested.

I might create a 1.1 branch and keep the current 1.0.4 as a "stable" version.

But I would like to add more features to 1.1 then just a DirectDraw driver.

I know you made a donation, so if you want a banner free version of this, I can send you one directly without making it an official release.
Kzinti wrote:Sounds like GETRAWFRAMEBUFFER is deprecated / unsupported in WM6.

I have some idea how to work around that, I'll get back to you asap.

The fact that it uses GAPI on WM6 explains why it is much slower in landscape mode.


Ok its one thing to depreciate GETRAWFRAMEBUFFER, that is fine, but on the ASUS 696 it is depreciated and they are returning 1 for the call to ExtEscape! Which causes any game looking for that info not work since they dont fill in the structure correctly, wtf?

Do all WM6 devices do this, or is this a bug in the ASUS 696 OS?