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

Performance question


Performance question

Postby directdance » Feb 17, 2006 @ 11:18am

Hi,

does it matter if using 24 bit or 16 bit graphic files for sprite design re the performance of the graphic engine of PPL (e.g. colission, animation, moving sprites, etc.)?

Thanks,
DirectDance
directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby kornalius » Feb 17, 2006 @ 3:36pm

That is a very good question. It certainly won't affect collision check performance but might have an impact on sprite rendering speed but I am not a gfx expert. You should ask in the PocketHAL/PocketFrog forums here, it's the best place to get good answers about gfx performance on PocketPC's.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Presto » Feb 17, 2006 @ 4:59pm

Using PF Surfaces for the image data, the 24-bits are converted to 16-bits as they're loaded in, so there's no impact, except in filesize. In The Sudoku Collection, I converted all of my .PNGs from 24-bit to 16-bit, and saved about half a meg in the .cab size. As for blitting the images, it copies the memory directly, unless you're using pixel shaders or alpha blending, so once again it won't matter if the original is 24- or 16-bit. Now, if PPL keeps the images as HBITMAPs (which I don't think it does), then it'll behave differently, and could use up to 4 bytes per pixel, but I thought it was using PF for the image stuff.

-John
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby kornalius » Feb 17, 2006 @ 6:00pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Presto » Feb 17, 2006 @ 8:35pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

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