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

Flickering on Toshiba e750


Flickering on Toshiba e750

Postby j.edwards » Mar 7, 2004 @ 5:20am

Hi Thierry,
I have had a report of my game which uses PocketHAL flickering on an e750 by fast_rx:



From what is described it sounds like instead of writing to the back buffer it's drawing directly to the screen. Could it by the vsync flag on Swap()? I don't currently use it, but is it good practice to always use it?
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Kzinti » Mar 7, 2004 @ 5:33am

VSYNC functionality is only available on devices that use the CPU built-in LCD controller (StrongARM or XScale). The E750 isn't one of them. The E750 has an Imageon 100 and all the screen will be updated all the time. Said another way, both swap flags won't do anything on the E750. Because of this, some (minor) flickering is inevitable. The situation is basically the same as using GAPI (altough PHAL will be running a little bit faster).

PHAL will operate in SWAP_COPY mode on the E750, so I really don't know what could be wrong.

Could you try the following: forcing a call to Display::GetBackBuffer() before rendering each frame and see what happens?
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby j.edwards » Mar 7, 2004 @ 5:55am

That was a fast response!

I am currently calling Display->GetBackBuffer()->GetPixels() at the beginning of every frame. Did you also want me to call it after each frame is rendered, but just before the swap?
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Kzinti » Mar 7, 2004 @ 6:02am

Then you are doing it fine. I have no idea...
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby j.edwards » Mar 7, 2004 @ 6:07am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Guest » Mar 9, 2004 @ 7:20am

Guest
 


Postby Kzinti » Mar 9, 2004 @ 7:23am

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


Postby j.edwards » Mar 10, 2004 @ 6:43am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Kzinti » Mar 10, 2004 @ 7:34am

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


Postby j.edwards » Mar 10, 2004 @ 12:07pm

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby fast_rx » Mar 10, 2004 @ 5:03pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Mar 10, 2004 @ 5:19pm

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


Postby Kzinti » Mar 10, 2004 @ 5:28pm

I just tried your latest version (on your web site) and sure enough the graphics are messed up on my iPAQ2215. This was working properly with an earlier version I still have (PHAL 0.6.0).

It does look like you are calling Swap() too often.

Could you also try to call BeginScene() at the start of each frame, before calling GetBackBuffer()->GetPixels()?
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby j.edwards » Mar 10, 2004 @ 10:42pm

Thanks for the tips. I have uploaded a new version:



I was not calling BeginScene(). With this version I have gone back to SWAP_DISCARD, no vsync, but calling BeginScene().
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby j.edwards » Mar 10, 2004 @ 10:55pm

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Next

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