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

Considering moving from PocketFrog...


Postby Johan » May 12, 2003 @ 8:52am

Sm!rk/Warmi: GetBuffer does not copy/rotate/anything the internal buffer of each surface. It simply returns the internal memory area as used by GapiDraw. So it is more like "GetRawBuffer" as Sm!rk suggested.

I have received source code from a user here at PocketMatrix, which is a cache-optimized block rotator. I will publish this (with full regards to the creator of course) as a tutorial on how to create a cache-aligned buffer from each surface.

Lock()/Unlock() were both removed from GapiDraw 2.0. Reasons are that I did not want them mixed upp with LockVideoSurface()/UnlockVideoSurface(), and that they were commonly misused by DirectX programmers (due to their significant overhead).
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby warmi » May 12, 2003 @ 9:14am

Ah right .. it was lock() that was copying and "unrotating" surface from whatever native rotation format it was stored internally.

Yeah so at this point the original problem still persists, meaning that the memory buffer is in native format which is not as simple as say , storing it in standard format and doing rotation in the final flip.
On the other hand , I completely understand your decision to store rotated surfaces in native format to avoid shearing.
My current game ( about 95% done) uses variable rate terrain scrolling and shearing , not performance, is the biggest problem at this point so I am actually very glad that GapiDraw works the way it does - I don't want to even think how bad shearing would be if the final blit also included rotating...
:-)


PS.

BTW .. I just finished “porting” my game to GapiDraw 2.x. The performance went up by around 20%-30% which, considering that I almost exclusively use alphablit for all my sprites, is pretty much what I would expect.
Everything else works, fine – I had small issue with drawtext which seems to be a bit more picky as far as font bitmap ( compared to GapiDraw 1.x ) but I resolved all problems and now everything works fine.

PS2.
Here is a little movie of my new game in action.
http://www.warmi.net/images/zraid/game.avi
This is a version with "collisions turned off" for testing so I am plowing thru everything with ease :-)

Back in the day I played River Raid a lot and always wanted to make a clone with modern graphics etc ..
Last edited by warmi on May 12, 2003 @ 9:35am, edited 2 times in total.
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby efortier » May 12, 2003 @ 9:16am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby ppcStudios » May 12, 2003 @ 3:17pm

Warmi: Nice little movie. I really like the particle effects on the explosions. How did you create your avi?
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


Recording

Postby warmi » May 12, 2003 @ 4:31pm

I used Camtasia (http://www.techsmith.com/products/studio/default2.asp) which is a $300 app ( "the premier screen recording program" according to official spin.)
It is really simple to use - you select your codec, select the source ( either entire desktop , parts of it or a selected window) and then you ... well, record :-)

Of course you have to have your application running on the desktop which is not a big deal for people using GapiDraw.

PS.
They have 30 day full-featured demo available on their site.
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


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