Hi!

WinScreenLock is badly broken on many devices. Even the official API
docs say that it is unsuitable for double buffering in games. Throw out
that code and just use WinCreateOffscreenWindow (why are you only
considering this on 3.5 and higher?). Then either do WinCopyRectangle or
write some assembly code that is faster.

Cheers,
Tilo



> 
> regarding double buffering in one of my games:
> I got a report that it does flicker and so I rechecked my double 
> buffering code. I used WinScreenLock()/Unlock() and added 
> WinCreateOffScreenWindow() for everything beyond 3.5. Now I even check 
> the return value from WinScreenLock() and use WinCreateOffScreenWindow 
> in case of NULL as return code. But... nevertheless the customer reports 
> flickering on its device. It is a Handspring Visor 3.5H.
> Any comments about this? The emulator doesn't show this flicker, of course.
> 
> Thanks a lot,
> Henk
> 
> Markus Dresch wrote:
> > there are plenty of examples for double-buffering out there (STFW).
> > you also want to check out the docs (RTFM): WinCreateOffscreenWindow,
> > WinCopyRectangle...
> > 
> > markus dresch (www.palmside.com)
> > 
> > "Parimal Gupta"  schrieb im Newsbeitrag
> > news:110819@palm-dev-forum...
> > 
> >>Hi All,
> >>
> >>How to do Double buffering in Palm?
> >>Is EvtGetEvent function is the solution of the flickering of the images
> >>and how we can use this with timeout?
> >>
> >>thanks
> >>
> >>Regards
> >>Parimal
> >>
> 
> 
> 
> -- 
> -------------------------------------------------------------------------
> [EMAIL PROTECTED]                                       www.metaviewsoft.de
> 
> 
> 
> -------------------------------------------------------------------------
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to