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 Wed Jun 26, 2019 6:27 pm

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jun 09, 2009 1:11 pm 
Offline
User avatar

Joined: Sat May 30, 2009 2:57 pm
Posts: 18
Location: Germany Frankonia
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

_________________
[x] -- Click at the [x] while pressing [SHIFT] + [ALT] + [NUM-LOCK] simultanously.


Top
   
PostPosted: Tue Jun 09, 2009 5:11 pm 
Offline
Tutorials Contributor
Tutorials Contributor
User avatar

Joined: Tue Jun 17, 2008 3:39 am
Posts: 59
Location: Midwest, US
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.

_________________
Don't look at me. I'm new here.


Top
   
PostPosted: Tue Jun 09, 2009 6:07 pm 
Offline
User avatar

Joined: Sat May 30, 2009 2:57 pm
Posts: 18
Location: Germany Frankonia
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

_________________
[x] -- Click at the [x] while pressing [SHIFT] + [ALT] + [NUM-LOCK] simultanously.


Top
   
PostPosted: Thu Jun 11, 2009 9:37 am 
Offline
User avatar

Joined: Sat May 30, 2009 2:57 pm
Posts: 18
Location: Germany Frankonia
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? :? (Please)
What are normal fps at your PDAs?

_________________
[x] -- Click at the [x] while pressing [SHIFT] + [ALT] + [NUM-LOCK] simultanously.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

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

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