This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PocketHAL + Symbian + Screen Flickering!!


PocketHAL + Symbian + Screen Flickering!!

Postby EvilMaio » Oct 7, 2005 @ 9:59pm

Hi folks!

I'm trying PH on symbian devices.

On my 6600 my demo runs fine, on 6630 it flicker (tearing) a lot!

There is a way to have vertical sync on symbian devices?

I googled few hours and i found nothing,looks like that on s60 devices we can't have flicker free applications (??)

Is this possible?? So how commercial games did???

Update: i tried direct screen access sample from nokia and looks good also on 6630 (no tearing), so i suppose something went wrong with PocketHal :((
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby Kzinti » Oct 9, 2005 @ 9:12pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby EvilMaio » Oct 10, 2005 @ 8:32am

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby Kzinti » Oct 10, 2005 @ 10:01am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby EvilMaio » Oct 10, 2005 @ 10:25am

Actually,
i'm looking on nokia sample:



Looking on sources, i can't see anything really interesting on that code..and i suppose you already
knew it (i found only that sample from nokia)

Anyway nokia application doesn't flicker :(
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby Guest » Oct 10, 2005 @ 6:15pm

Isn't the address received to the "display" in fact an address to a back buffer? If you draw something to that address you still have to trigger a redraw for the things to show? This was true for older nokia devices, but I don't know how it is with newer ones.

When I developed things for symbian, the SonyEricsson devices returned the address to the display but nokia devices did not expose the display directly, but returned an address to a back buffer.

The problem of syncing the blit with vblank is a problem that was also discussed heavily, but I think that the only official answer was that these API:s would be available in later versions of symbian. There is AFAIK no way to sync with vblank if you are using DSA.
Guest
 


Postby Kzinti » Oct 10, 2005 @ 6:52pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby EvilMaio » Oct 10, 2005 @ 7:16pm

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby Kzinti » Oct 10, 2005 @ 7:45pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Kzinti » Oct 10, 2005 @ 9:53pm

Attachments
POCKETHAL.zip
Potential fix for flickering on Nokia 6630. (PHAL 0.7.7 ARMI Lib)
(12.72 KiB) Downloaded 947 times
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby EvilMaio » Oct 10, 2005 @ 10:16pm

Same as before :?

Perfect on 6600
Flicker on 6630

I'm trying to send sample test also to my friends with other serie60 phones.
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby Kzinti » Oct 10, 2005 @ 10:35pm

When you say flickering, do you mean flickering or tearing? Can you descrive in more details what you see? What are you testing?

OK, this time I disabled DirectScreenAccess on the 6630. Can you give it a try? Thanks.


<TT: Deleted attachment>
Last edited by Kzinti on Oct 11, 2005 @ 12:09am, edited 2 times in total.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby EvilMaio » Oct 10, 2005 @ 11:07pm

User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Postby Kzinti » Oct 11, 2005 @ 12:12am

Oh it is a simple thing, but an annoying one.

Most Symbian Serie 60 phone do not actually provide direct screen access. What they do is give you access to some other buffer that gets copied to the actual display when you send a ERedraw event to UserSvr. I say "most" but I tough there were all like that.

It seems that this isn't the case of the 6630 (ie: when you draw you are actually updating the display directly). This would explain the flickering.

You will notice that the Symbian sample assumes that the buffer returned by DirectScreenAccess is the actual display.

To make things safer, I will not assume this anymore. Instead, I will enable the optimization only for phones I know are double buffered.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby EvilMaio » Oct 11, 2005 @ 12:28am

Well done Thierry,

i made a simbolic donation (i'm already a registered user) to thank you for your time and patience :)

Hope to have soon latest version :)

Thanks again.
User avatar
EvilMaio
pm Member
 
Posts: 45
Joined: Apr 26, 2005 @ 3:05pm


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

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

cron