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

PocketFrog update


Postby warmi » Jan 23, 2004 @ 6:04pm

warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby Kzinti » Jan 23, 2004 @ 7:58pm

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


Postby Guest » Jan 23, 2004 @ 8:42pm

Guest
 


Postby Kzinti » Jan 24, 2004 @ 2:15am

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


Postby mlepage » Jan 24, 2004 @ 2:22am

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 efortier » Jan 24, 2004 @ 2:24am

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


Postby Kzinti » Jan 24, 2004 @ 3:16am

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


Postby efortier » Jan 24, 2004 @ 3:39am

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


Postby warmi » Jan 24, 2004 @ 3:54am

"Do you have any evidence pointing to less efficient heap management on the PPC? "


Well, when writing ZRaid the game was experiencing unexplained slow-downs only on my PPC devices ( on a desktop was working fine.)

I spent hours trying to figure that one out - there was plenty of memory available , everything seemed to be running fine until a certain point where things would just slow down for no apparent reason...
Eventually I tracked it down to a heap management issues. While having couple hundred allocated memory blocks meant nothing on my PC , it was literally killing my Ipaq.
I was using QList and QVector all over the place and reimplementing new/delete to use chunked allocation (1000 or so nodes at a time) fixed everything.

" Nothing prevents you from explictely using a std::Vector<void*> to store objects."

No as safe as Vector<foo>.


Don't get me wrong. I use STL-like library all the time- in fact, I can't imagine writing code without this sort of basic library anymore - it is just STL was designed as a full featured, complete solution rather than a lean and efficient library – something that one would prefer in low-memory/slower devices.
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby warmi » Jan 24, 2004 @ 3:58am

mlepage:

I never said I was running out of memory.
That was the problem - I had plenty of memory available but new/delete was slowing to a crawl because of fragmentation - something that was only visible on a PPC device ( on my desktop machine running the same code with 10 x memory allocated ( and by the same token fragmented) didn't make any difference at all.)

Here is another reference to the issue of crappy heap management on PPC:

Look at the post written by Digby:

http://216.40.216.132/forums/viewtopic. ... 5faf1c8a7d
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby mlepage » Jan 24, 2004 @ 5:18am

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 efortier » Jan 24, 2004 @ 6:03am

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


Postby Kzinti » Jan 24, 2004 @ 6:14am

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


Postby Kzinti » Jan 24, 2004 @ 6:18am

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


Previous

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

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