| FBA The Creator http://www.fbacreator.com/fbaforum/ |
|
| MEMORY questions! http://www.fbacreator.com/fbaforum/viewtopic.php?f=5&t=69 |
Page 1 of 2 |
| Author: | Boiled Sweets [ Sat Jun 28, 2008 10:28 am ] |
| Post subject: | MEMORY questions! |
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? |
|
| Author: | umbiomar [ Sat Jun 28, 2008 10:42 am ] |
| Post subject: | Re: MEMORY questions! |
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. |
|
| Author: | Boiled Sweets [ Sat Jun 28, 2008 12:38 pm ] |
| Post subject: | Re: MEMORY questions! |
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! |
|
| Author: | Boiled Sweets [ Sat Jun 28, 2008 1:37 pm ] |
| Post subject: | Re: MEMORY questions! |
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! |
|
| Author: | evilmaio [ Sun Jun 29, 2008 10:37 am ] |
| Post subject: | Re: MEMORY questions! |
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. |
|
| Author: | Boiled Sweets [ Sun Jun 29, 2008 10:43 am ] |
| Post subject: | Re: MEMORY questions! |
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... |
|
| Author: | evilmaio [ Sun Jun 29, 2008 10:45 am ] |
| Post subject: | Re: MEMORY questions! |
No there aren't limitations; just the memory one |
|
| Author: | Boiled Sweets [ Sun Jun 29, 2008 10:46 am ] |
| Post subject: | Re: MEMORY questions! |
can u recommend any particular memory tracking software? The trouble is FBA runs full screen and cannot break out to switch to other app... |
|
| Author: | evilmaio [ Sun Jun 29, 2008 11:09 am ] |
| Post subject: | Re: MEMORY questions! |
Usually i also do this with windows task manager. I start my Windows FBA program, then i check the memory used by "FBA.exe". |
|
| Author: | Boiled Sweets [ Sun Jun 29, 2008 11:19 am ] |
| Post subject: | Re: MEMORY questions! |
can u do this with full screen program? cannot seem to 'break out' of fba to see... did you like the new logos? |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|