PocketMatrix forums

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

Features in the next 'frog (0.5.3?)

Dave Johnston · 23 Jul 2002, 18:49 UTC
Reckon we could have a yes/no/not yet on features that will or will not be in the next version of PF?

I'd like to know if rotation (of surfaces for sprites and stuff) will be present.

Maybe we can devote this whole thread to questioning Kzinti about it so we have a firm idea of what to look forward to! (and put some pressure on... mwahahaa)
If we're okay with rotation, how about stretchblt?
0.5.3 will feature support for the Jornada 7xx handheld serie. It will probably also include contributed samples running on all devices (plasma demo, sprite demo, ...). Some minor modifications will be added, such as SetRenderTarget() returning the previous rendering target.

0.6.0 will be the one featuring stretch blits and rotation blits. I am unsure yet how to define the API for rotation blits, most API use the top left of the source rectangle, which is non intuitive (I think that's the way DirectDraw works). I'd rather use a pivot point to specify the position, this pivot being the center of both source and destination rectangles. Let me know what you guys think.

0.7.0 will most probably feature WAV sound support (something similar to what was was in 0.4.5b). Music support is out of the question, although I might provide wrappers around mikmod. What is certain is that generic sound buffer will be available so that anyone can play whatever he wants with the sound system.

In don't expect 3D to be in PocketFrog 1.0... This will most probably be postpone to PocketFrog 2.0 (or PocketFrog3D?). But 2D polygon rendering is not out of the picture for 1.0.
Hi,

After digging deep into the DirectDraw core I found that there aren't many cards on the market that support hardware rotation (intense testing & reading the caps showed that neither ATI nor NVidia support it), so it´s difficult to predict how DDraw would work if manufacturers indeed would choose to support it. Perhaps that´s one of the main reasons no-one chose to support 2D rotation in hardware, because it´s unclear of how it should work in practice (pivot being top-left or center).

Anyways.. For simplicity, in GD I chose to use pivot = center of source & dest rectangles. Rect == NULL means center of surface. I guess it would be nice to be able to move the pivot around on the dest surface, but I didn´t have the time to implement it (still have thought about it though as a simple POINT option to my Blt parameter struct, but it´s a long way down on my list and no-one has complained yet)... :)

/Johan
Conan · 29 Jul 2002, 09:53 UTC — Next version
delighted that Jornada 7* support is coming. While only about 10% of my users have handhelds I love the HPC format & want Space Treker 3 (3D) to work on all platforms.

Obviously I am happy to test on my J710

Re: other features I can add my own bitmap sizing function if needed & my 3D functions have a scale factor built-in anyway.

ps: Just back from holiday in Norway. Lovely country, Fiords, waterfalls, glaciers etc & of course very high prices. Bergen is fine for internet cafe's but otherwise not much access.
The handheld PC have a really different orientation then your usual PocketPC in that the "landscape" mode has the "north" orientation.

If you wanted to have a landscape orientation on a PocketPC using PocketFrog, you would specify config.m_screen = ORIENTATION_WEST.

This is obviously not going to work for the HPCs where the landscape mode should be specified as config.m_screen = ORIENTATION_NORTH. I am unsure how to properly resolve this. I was thinking about changing the way display orientation is specified to something like ORIENTATION_LANDSCAPE but I don't really like it.

It is really doubtfull that you would want to run anything on a HPC with an orientation != ORIENTATION_NORTH. So perhaps a simple solution would be to ignore the config.m_screen parameter on HPC and always open a 640x240 display... What do you guys think / want? Is something like a 240x640 usable for anything?
Conan · 31 Jul 2002, 06:47 UTC — HPC screen orientation
Personally I would never write anything to work in 240 x 640 so the 'ignore' route would work for me.

I have seen a few Tetris type games (Jewel was one)which utilised a side on approach but they never really caught on.
I've got PocketFrog running on my Jornada 720 and the performance of the display memory really sux.

Where I get 53 fps on my Casio E-125, I only get 17 fps on the J720. If I only update a 320x240 window, performance is around 20 fps. Even without drawing anything, simply "flipping", I get something around 40 fps. This is really bad.

I am currently using GDI to blit the backbuffer to the front (not using GDI gave even worst results). So there is indeed some kind of 2D acceleration in the J720. I've also tried direct access to the display memory (no backbuffer), the performances were almost the same as using a backbuffer/memcpy combinaison!

The last thing I tried was using two different GDI buffers and alternate them as the backbuffer. This way I get to draw in one while blitting the other. There was no gain in performance over using a single GDI buffer.

Conclusion: the bandwidth to the display memory is the bottleneck and will severely limit the frame rate. For games that need to update all of the display (ex: 3D games), this is too bad. For turn-based game, this is allright.

I will release PocketFrog with support for the HPC nevertheless, but don't expect stellar performances.
Conan · 07 Aug 2002, 09:16 UTC — J720 PocketFrog
I will make sure that my game design for Space Treker makes the best of the frame rate available on the HPC.

Perhaps this performance will be similar to XScale PocketPCs ? Has anyone tried PocketFrog on an XScale yet?

I'm holding onto my money until something faster comes out. I had intended to by a Loox or similar for testing but they all seem to have the same perfomance issues.