FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Thu Jun 04, 2026 3:50 am

All times are UTC




Post new topic  Reply to topic  [ 13 posts ]  Go to page 1 2 Next
Author Message
 Post subject: MEMORY questions!
PostPosted: Sat Jun 28, 2008 10:28 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Running my game in the IDE and all was fine. Installed to device and switching from menu to game get a memory low error message.

1. Can we have some functions that query the memory in use etc so we can track resource usage etc?

I now unload all the menu resources when exiting the menu but even though it works in the IDE all I get on the device when running is a black screen.

2. Why is this? How can I better debug on the device?

3. Do TTF fonts use LOADS more memory? Are GFX fonts better?

4. What other memory saving techniques can I use?

5. How much memory does FBA.EXE use? Can it be limited?

_________________
http://www.boiledsweets.com


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sat Jun 28, 2008 10:42 am 
Offline
Feejo Member
Feejo Member
User avatar

Joined: Fri Mar 28, 2008 8:07 am
Posts: 64
Location: Italy
Keeping in mind that PPC device has far lower resource than PC....
to track down the problem i suggest to disable features via an ingame menu with options.
This is the usual approach used on mobile games.

Remenber that lower will the resource requirements, bigger will be the supported devices.

_________________
Regards,

umbiomar
[email protected]


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sat Jun 28, 2008 12:38 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
OK found out why it just hangs. If you have not enable audio extension and load a sound it hangs! Not nice!!!

There has to be some memory funcs added to aid the developer! You cannot just have this suck and see approach!

_________________
http://www.boiledsweets.com


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sat Jun 28, 2008 1:37 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Could my 5 points be answered individually please.

Also point 6.

6. What is the maximum grid size I can create? A 2000*2000 just causes FBA to hang on the device!

_________________
http://www.boiledsweets.com


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sun Jun 29, 2008 10:37 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
FBA won't tell you when you're going low resources. I suggest you to download an external memory track usage program and keep your FBA program as light as possibile (imho keeping your memory usage always lower than 6-7 mb is the best thing and should be enough for all devices)

Boiled Sweets wrote:
3. Do TTF fonts use LOADS more memory? Are GFX fonts better?

TTF fonts use more memory than GFX fonts, because the TTF extension. (that's why i always prefer gfx fonts)

Boiled Sweets wrote:
4. What other memory saving techniques can I use?

Actually you should remember to load/unload resources just when needed.

Boiled Sweets wrote:
5. How much memory does FBA.EXE use? Can it be limited?

FBA showing a blackscreen uses very few memory (LUA extension + some other memory required by startup environment).

Boiled Sweets wrote:
6. What is the maximum grid size I can create? A 2000*2000 just causes FBA to hang on the device!

Remember: lower is better :)
It's better to split your worlds and load them when needed.


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sun Jun 29, 2008 10:43 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Thanks.

OK unloading menu resources when exiting the men and game resources when exiting the game. Will switch to gfx fonts too.

I'll get some memory tracking software.

Is there a limitation to the size of grids, seems to "go black" when I have a 2000 * 2000 grid...

_________________
http://www.boiledsweets.com


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sun Jun 29, 2008 10:45 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
No there aren't limitations; just the memory one :)


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sun Jun 29, 2008 10:46 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
can u recommend any particular memory tracking software?

The trouble is FBA runs full screen and cannot break out to switch to other app...

_________________
http://www.boiledsweets.com


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sun Jun 29, 2008 11:09 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Usually i also do this with windows task manager.
I start my Windows FBA program, then i check the memory used by "FBA.exe".


Top
   
 Post subject: Re: MEMORY questions!
PostPosted: Sun Jun 29, 2008 11:19 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
can u do this with full screen program? cannot seem to 'break out' of fba to see...

did you like the new logos?

_________________
http://www.boiledsweets.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ]  Go to page 1 2 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited