Article View: comp.sys.acorn.tech
Article #436Re: Flicker-free Icon updating
From: Torben AEgidius Mogensen
Date: Mon, 28 Sep 1992 14:06
Date: Mon, 28 Sep 1992 14:06
20 lines
1421 bytes
1421 bytes
<SMARTIN@ESOC.BITNET> writes: >I am writing an application that requires a number of text icons to be >updated fairly regularly (frequency definable by the user). Currently, I >am using the SWI SetIconState with zero arguments to force an update, but >if the update frequency is more than a few frames per second, the flicker >is quite intolerable with or without icon borders. I have also tried the >SWIs ForceRedrawWindow and UpdateWindow (names may be slightly wrong), but >this does not improve things. My question is, is it possible to use the old >GCOL type tricks by EORing text into the Icon? If so, how is this done ? >If not, will updating the Icon as a Sprite help ? >Any other hints on how I could rid myself of this annoying flicker would be >greatly appreciated. You could try waiting for the vertical sync before updating. In Basic this is done by WAIT, but there is an Os_Byte call (I don't recall the number) that has the same effect. Torben Mogensen (torbenm@diku.dk)
Technical Details
Message-ID:
<1992Sep28.140636.11131@odin.diku.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!diku!torbenmReferences:
<92272.103620SMARTIN@ESOC.BITNET>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!diku!torbenm From: torbenm@diku.dk (Torben AEgidius Mogensen) Newsgroups: comp.sys.acorn.tech Subject: Re: Flicker-free Icon updating Message-ID: <1992Sep28.140636.11131@odin.diku.dk> Date: 28 Sep 92 14:06:36 GMT References: <92272.103620SMARTIN@ESOC.BITNET> Sender: torbenm@hugin.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 20