This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Frame Buffer, DMA Question


Postby Johan » Oct 31, 2003 @ 7:51am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby j.edwards » Oct 31, 2003 @ 8:23am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby j.edwards » Oct 31, 2003 @ 8:50am

Johan: That page about PocketHAL compared "flip times" between GAPI and PocketHAL...



1) Does GAPI mean GapiDraw?
2) Is "flip time" to flip between back buffer and front buffer?
3) Why does both GAPI and PocketHAL take so long on the iPaq, ie 17ms? I have an iPaq 1940 and can do it in 3ms etc and thought the 2210 was a few models up from mine.
4) You say an iPaq should be able to do it in 2.1ms, why doesn't that relate to any of the figures on that webpage?

The memory on the MediaQ is only 256kb which is enough to hold only 1 full screen display worth. How is it possible to have a backbuffer anywhere else but in normal ram?

PocketHAL says "Buffered access to the display. Blitting from the backbuffer to the frontbuffer is blazing fast."

However, to get data onto the backbuffer it would be just as slow as writing to the frontbuffer wouldn't it? In which case how is this an advantage if you have the additional overhead of having to copy from the backbuffer to the frontbuffer? Wouldn't it be better to build everything in ram then do one copy to the display memory?

PocketHAL says "Synchronization with the VSYNC signal to eliminate tearing (available for most devices)." - there must be a way to talk directly to the display ports as I mentioned in a previous post as this is the only way to get hands on VSYNC info. If PocketHAL can do that then it can also read the frame buffer address from the display io ports as well which explains why it doesn't need to rely on gx.dll.

Support for GDI surfaces is no worries...probably just using CreateDIBSection etc, but wonder how he can transpose to any other pixel format without speed loss.

Another thing...you have used speeds like "2.1ms" - how is it you measure in speeds less than 1ms? I am using GetTickCount().
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Johan » Oct 31, 2003 @ 12:36pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Kzinti » Nov 3, 2003 @ 12:45am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby denthorq » Nov 3, 2003 @ 9:15pm

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby j.edwards » Nov 3, 2003 @ 11:44pm

denthorg: You are right. I got a bit confused in my quest for answers. Apologies Thierry. Anyhow, not sure if wine is required anymore as I am starting to understand things and realise there is no point trying to redo everything Thierry has done with PocketHAL.

I have found it quite a learning curve though. A few weeks ago I began learning C++, and was therefore focused on speed to see just how well you could get things performing. I have found both the emulator and debugging on the iPaq really slow and tedious so am now building solely on the PC using MS VC++ using the same code in most cases, but with compatible classes for iPaq where there are differences - such as graphics - and occasionaly testing on iPaq. This has been going really well.

The game I am building is a RTS variant and I will publish it in the forums once a beta is ready. I also plan to publish code for some of the algorithms such as pathfinding and AI (for 2 not entirely unselfish reasons: because I've benefited hugely from other's sample code, and because there will no doubt be people who could help optimise them).

Must say, this is a really good developer community. Who actually runs the website?
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby mlepage » Nov 4, 2003 @ 12:36am

I do. BTW your first payment is due, I sent an invoice to your account. Also, no more flaming or I'll ban you.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby j.edwards » Nov 4, 2003 @ 1:15am

mlepage: Are you just being smart? No idea what you're talking about. Care to explain?
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby ppcStudios » Nov 4, 2003 @ 2:37am

This forum's administrator is Johan Sanneblad, the originator of GapiDraw.
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby mlepage » Nov 4, 2003 @ 5:50am

Just a joke, I'm a bit ill today and likely exercising bad judgement. I should have added a smiley.

My understanding is that the site itself is run by a couple of individuals, and that others run individual forums. I believe it says at the top of each forum who moderates it.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby j.edwards » Nov 4, 2003 @ 6:16am

mlepage: I was going to say! I mistakenly identified Thierry as Italian instead of French-Canadian - didn't realise the emotion such a "flame" could stir. :)
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby mlepage » Nov 4, 2003 @ 7:37am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Previous

Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron