| FBA The Creator http://www.fbacreator.com/fbaforum/ |
|
| FBA 0.2.0.135 Performance issues http://www.fbacreator.com/fbaforum/viewtopic.php?f=5&t=195 |
Page 1 of 1 |
| Author: | Birger [ Tue Jun 09, 2009 1:11 pm ] |
| Post subject: | FBA 0.2.0.135 Performance issues |
Hi, dear FBA Community; I would like a pinned Topic "Performance Issues": It shall be a collection of tipps, to increase performance in FBA applications. @evilmajo: Do you agree and assist in that? Please. I realized, that even my favourite simple Tutorial/09b/gfx.font has 31* fps on my normal PC (AMD XP 2800) but on my PDA Glofiish X800 they decrease to 7 fps... *the project is set to 30 fps. Did anyone try www.wincesoft.de/html/gapi_for_hpc_s.html? On my X800 it doesn't install, maybe because WM2006 comes with a GAPI.dll. But here are my topics to discuss: To set a variable to Zero you can write this "var = 0"; isn't it better do do this "var = var - var"? Is it better, to use "for"- or "while/repeat"-loops? What are the (integer) values for nil, true, false? I'm experimenting with a gamegrid 10x10 cells²: Writing and reading values into and from a gamegrid is faster than using a table?! The same procedure using a table decreased the fps on my pda from 7 (gamegrid) to 5 (table). Did anyone try, to use the standard Windows DLLs with FBA for Dialogs, Messageboxes etc.? Have fun with FBA coding. /Birger |
|
| Author: | phrebh [ Tue Jun 09, 2009 5:11 pm ] |
| Post subject: | Re: FBA 0.2.0.135 Performance issues |
I'm not sure why you suggest that subtracting a variable from itself is the preferred method of setting it to zero. An assignment is direct whereas doing math pulls in resources to access the variables and to perform the operation. |
|
| Author: | Birger [ Tue Jun 09, 2009 6:07 pm ] |
| Post subject: | Re: FBA 0.2.0.135 Performance issues |
Hi phrebh; I think you're right; because lua is interpreted and not compiled (with code optimizing). Then, when needed something like "GRIDCOLS-1" several times in the code, it would be an advance to define a additonal constant "GRIDMAXCOL = GRIDCOLS-1" and using this in for- or if- statements. Thx & Regards /Birger |
|
| Author: | Birger [ Thu Jun 11, 2009 9:37 am ] |
| Post subject: | Re: FBA 0.2.0.135 Performance issues |
Quote: I realized, that even my favourite simple Tutorial/09b/gfx.font has 31* fps on my normal PC (AMD XP 2800) but on my PDA Glofiish X800 they decrease to 7 fps... *the project is set to 30 fps. I set the frame rate to maximum 200 in the project. Now the application shows 207fps running in the IDE. At the glofiish with WM6 the fps shown are only 6..7 fps. Why...any ideas? What are normal fps at your PDAs? |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|