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 4:57 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 10, 2008 2:16 am 
Offline

Joined: Tue Apr 01, 2008 4:23 am
Posts: 36
Hi, just highlighting this. Fba doesn't respond
very well when an incoming call is received on
PDA phones. I've attached a screen capture (sorry
it's very small), but you can basically see what
happens. The title bar is there, as well as the keyboard
icon, the phone incoming dialog box appears for a
second and disappears. Is it possible for Fba to
tackle this more gracefully?

Also the general template used in the code examples
seem to be processor intensive, eg:

Code:
function onmainloop()
        clear(0,0,0)
        *drawimage*
end


Is there any pitfalls to only draw if there is changes? eg

Code:
local boDraw = true
function onmainloop()
  if boDraw == true then
    *drawimage*
    boDraw = false
  end
 
  if keypressed then
    *calculate*
    boDraw = true
  end 

end


One problem with this is once the fbacreator fade in/out ad is gone, it'll leave behind a black box where it used to be. To solve this I'd like to propose that a special event is fired after the ad is gone so we can do a screen refresh call.


Attachments:
Screenshot_1.png
Screenshot_1.png [ 15 KiB | Viewed 9296 times ]
Top
   
PostPosted: Thu Apr 10, 2008 7:32 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Usually you can skip the clear(0,0,0) call if you are going to do full screen drawing operations;
this could save some cpu time...
(For example, if you're drawing a full screen image, you can safely skip the clear call).

By the way, you have to draw images on every frame or you will get a flashing effect :)

For the next releases, i'll add onsuspend and onresume events that could help on incoming calls (actually they're here, but they aren't used)

Regards.


Top
   
PostPosted: Thu Apr 10, 2008 8:12 am 
Offline

Joined: Tue Apr 01, 2008 4:23 am
Posts: 36
evilmaio wrote:
By the way, you have to draw images on every frame or you will get a flashing effect :)


Alright, no flashing on my pda tho

evilmaio wrote:
For the next releases, i'll add onsuspend and onresume events that could help on incoming calls (actually they're here, but they aren't used)
Regards.


Great to hear this :D


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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