PocketMatrix forums

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

PocketHAL status update

PocketHAL is shaping up nicely. Drivers are almost finished. All I need to do now is clean stuff a little, wrap up everything together and release it.


StrongARM LCD and XScale LCD
============================

Blitting from backbuffer to frontbuffer (any orientation) is running at least twice as fast as an equivalent GAPI implementation. Think full screen blits in less then 3.0 ms.

Synchronization with VSYNC is available on both processors in all orientations.

Known devices: iPAQ 3600, 3800, 3900, Maestro, most (all?) first generation StrongARM devices.


MediaQ LCD
==========

This one is a bummer and the reason PocketHAL has been delayed for so long. The MQ1132 sux, I was hoping the 1178 was faster, but no, it sux too. Even with the hardware blitter (performing the rotations), performances are slower then using GAPI, which is already slow.

Synching with refresh is possible in theory, but there is no point in doing it: blitting the backbuffer (19-33 ms) is slower then the refresh speed (~17ms)!

Known devices: All the devices coming out right now (arg!)


Imageon 100
===========

ATI doesn't fare much better then MediaQ. At least there was a way to speed it up by 5-10%.

No synching with the refresh here, couldn't find a way.

Known devices: E740, E750
Awesome work Thierry !

Do you plan to release the source code of this masterpiece ?

The mediaQ nightmare doesn't seem to appear on every new devices, Asus and h19xx doesn't have MediaQ.

I've also heard that the e350 doesn't have imageon....
Great to hear from you Thierry!
Can´t wait to try this new PF
I too await a release. I very much want to see what's cooking in PF world these days :)
I too am excited to see this, I was wondering how this will work out? Will it be in dll form? If it is a dll like GapiDraw, It would be neat to see a framework that closely matched it so that people could easily switch between the two.
PocketHAL will be delivered as .lib files. Using DLLs is a really bad idea IMO and can cause problems on PocketPCs (they are something unable to relocate/load DLLs). Just enter "DLL hell" in Google for more then you ever wanted to know about DLL issues.

I am leaving for Italy mid-october, so I am aiming at releasing both PocketHAL and a modified PocketFrog library that uses it before then.
Thierry, did you get PNG loading support included?

Also, what about a DirectX driver?
fzammetti wrote:
Thierry, did you get PNG loading support included?

Also, what about a DirectX driver?


PocketFrog can handle PNG right now. For the full PNG library integration, I am unsure if I will have time to do it before my vacations. Rest assured that it will be done for the next PF release (after PocketHAL integration).

The DirectX driver will probably be part of the second release of PocketHAL (i.e. a desktop version). This way PocketFrog won't need any modifications to use it.
My bad, I should have been more specific... I was in fact talking about the libpng support. I forgot imgdecmp.dll handles PNG, so yeah, that's there already absolutely.

Do you have even a rough idea when that and the DirectX driver might be available? I'm asking because I may have to switch my current project back to PF, and if I do so I need to have at least a rough idea (say within a month either way) of when the DX support specifically might show up. I'd prefer the libpng support too, but that I can probably live without in the long-run.
fzammetti wrote:
Do you have even a rough idea when that and the DirectX driver might be available?


I might have the time to do it for mid-october. But if not, mid-november for sure.
That sounds good. I'm shooting for a January 1st release date, but I'm starting to get the feeling I'm going to miss that anyway, so it sounds like there's a good amount of slack space there. Thanks Thierry!
Excellent work Thierry. I would like to try it out as well. Where can I find out exactly what PocketHAL does (and doesn't do)? My needs are simple: buttons, stylus, image blitting, image loading (PNG), timers. Does it work on PC as well as PPC?
Thierry, if you give me a basic class with headers, I could probably impliment the directX end for you.
Just a small note on DX support.. Based on the feedback I've got on GapiDraw you need to support both 555 and 565 formats since there are still quite a lot 555 cards out there.. And if I remember correctly PF only supported one format (either 555 or 565) - so you would need two PF versions... Of course you could check the format and simply transform each pixel RGB value.. But it's quite slow if you want to go full screen (and impossible if you want to support hardware surfaces)..
can I assume that the directx support discussed is required before PocketFrog + new HAL can be used to develop on PC with VC6 ?
You can use VC6 with the current version, it just uses GDI, so performance leaves quite a bit to be desired.

I personally used eVC++ when I developed Invasion: Trivia, because using GDI was just too slow to be useful. At least the emulator uses DX so the performance is pretty much what it should be.

But, it can be done right this minute with the current version if you want to.
I've read in the previous post about PocketHal that the notion of orientation has disappeared, does this mean that PocketHal got rid of the swizzle/unswizzle (funny word btw) situation?
Because when writing programs that use locking of the backbuffer to write pixels, I had a performance issue on my iPaq3850, it had to reformat the pixels twice with every frame before writing to the vram.
(native orientation ipaq = east, application orientation = north). On an axim it went fine because the axim has a native 'north' orientation.
I wonder if this is still the same in PocketHal?
Is there any other way to avoid this, by using the Lock(discard=true) maybe? On the other hand by using the 'discard' I'm not quite sure whether it's still possible to write portable code.

regards, Joost
Let me just say that I think we should worry about all this DirectX thing after the basic PF HAL is complete and stated as "stable", Thierry is under enough pressure right now ( yeah, we all think that our curiosity is nice, but for him I still think it´s pressure, even bigger lately with the GD licence fiasco )
So, let the new pocketfrog arrive first, and then we can come up with new ideas. We cannot forget that PF is a library for POCKET PC games, directx may be a nice future plus, but the main target here seems to be the pocket pc platform.

I don´t mean to be boring or party crusher, that was just my $0,02 about DX on PF
Hi Frank, you miss-understood :), I currently do all the dev work on VC6 (& performance is fine). What I want to know is whether I need to wait for the DirectX stuff before I can consider converting.
Your right, to a point. I agree that Thierry has enough to do to get the current PF code base working with PHAL, and I for one wouldn't rag on him if the next release didn't include DX support (which he's already said it won't, and I'm perfectly OK with that answer).

However, you have to understand what prompted my bringing it up...

I started a project about four months ago which is now quite far along, based on GapiDraw, and the PRIMARY reason I did so was because of it's DX support. I loved the idea of a simultaneous desktop/PocketPC release. If it wasn't for that, chances are I never would have left PF in the first place.

Now, with the GD licensing mess, I have an extremely difficult choice to make. If I go back to PF as it stands today, I can't do the desktop release (because GDI simply won't cut it). So, the availability of the DX driver for PHAL, and a rough timeframe for it's release, is a very important question for me. I need to be able to plan the next 4-6 months of development, and when (or even if) a DX driver for PHAL is coming is an important consideration for me.

Put me personally aside for a moment though...

I think we're going to see a mass exodus of people leaving GD, unless VI has a major change of heart. In fact, at least two people have already said good ridance, and they are looking to PF as an alternative.

I think all of us, and Thierry has said as much lately, would like to see PF match and eventually excede GD's level of functionality. One of the pieces to that equation, arguably a very large piece, is DX support.

Your right, Thierry has always stated that PF is a PocketPC toolkit. However, the architecture of PHAL as desribed almost SCREAMS DX support, among other platforms.

And, I'm sure Thierry will say this in a few minutes, as he's done many times in the past... PocketFrog has always been a hobby for him, I doubt very much he's feeling any pressure whatsoever :)
Me, misunderstand something? Conan, surely you jest! ;)

I'm not sure I understood your question then actually...