Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Flickering on ipaq 2210


Flickering on ipaq 2210

Postby jaguard » Apr 5, 2006 @ 8:25am

It's strange - every owner of this PDA tells that the game awfully flickers every time on loading screen.
My guess is that I'm doing getdisplay + update without completely redrawing the screen(I only update loading progress indicator, by perfomance reasons), and this is somehow forbidden.
Why is it so, and am I right that I must redraw everything every frame?
jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby Conan » Apr 5, 2006 @ 9:08am

If you don't redraw everything some devices will work & some won't. My X5 was ok but my iPaq 3650 wasn't so I always draw everything now.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby jaguard » Apr 5, 2006 @ 9:15am

So it can't be helped? Ok, looks like I'll have to rewrite my loading update function, again..


[offtopic]Btw, Conan, did you get my email a while ago? I asked you if you wanted to be in credits :). Did you get the full version? It's just that I didn't get any reply..
It's just that[/offtopic]
jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby Kzinti » Apr 6, 2006 @ 6:03am

You have to completly redraw the screen unless you force PocketHAL into SWAP_COPY mode. The 2215 will operate in SWAP_FLIP mode by default.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Apr 11, 2006 @ 6:35pm

Thierry, is pocketFrog using the _SWAP?

I looked at the code and didn't see either SWAP or COPY, so I assume it must defualt to SWAP.
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Apr 11, 2006 @ 11:23pm

You can specify two swap modes: SWAP_DISCARD and SWAP_COPY. SWAP_NONE isn't a valid choice.

Code: Select all








/// The SwapEffect is used to specify how the display is updated from the
/// backbuffer.
enum SwapEffect
{
    SWAP_NONE,                  ///< Direct access (no buffering).
    SWAP_DISCARD,               ///< We don't care about the content of the backbuffer.
    SWAP_COPY                   ///< We want to keep the backbuffer content.
};
8 lines; 1 keywds; 0 nums; 5 ops; 0 strs; 5 coms    Syntactic Coloring v0.4 - Dan East  


By default, SWAP_DISCARD is being used:

Code: Select all



    /// Construction
    DisplayParameters( Orientation orientation = ORIENTATION_NORMAL,
                       SwapEffect  swapEffect  = SWAP_DISCARD )
3 lines; 0 keywds; 0 nums; 5 ops; 0 strs; 1 coms    Syntactic Coloring v0.4 - Dan East  



If you don't want to have to update the whole screen, use SWAP_COPY. The 2215 operates in SWAP_DISCARD mode (that's what I meant, and not SWAP_FLIP).

Since PocketFrog uses the default SWAP_DISCARD mode, you need to update the whole screen. Or you can change the initialization of PocketHAL to use SWAP_COPY.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Apr 12, 2006 @ 1:10am

Does it show garbage or some constant color for sections that were not drawn?

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


Postby Kzinti » Apr 12, 2006 @ 7:45pm

Undefined behavior is the answer =)
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


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