🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #445

Re: Flicker-free Icon updating

#445
From: Graham Allan
Date: Tue, 29 Sep 1992 14:10
23 lines
1593 bytes
In article <92272.103620SMARTIN@ESOC.BITNET> 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 ?

I already replied by mail, but, unless you need the extra functions
of icons (detecting clicks, etc), I would suggest ditching them and
doing text update manually by your program. The main programming effort lies
in working out where to plot the updates, from the window work area and the 
scroll offsets, but once this is done, it is fairly easy to make your 
redraw routine. The speed difference between this and using
icons is large.

	- Graham

gta@st-andrews.ac.uk
allan@mnhep8.hep.umn.edu
Technical Details
Message-ID: <1992Sep29.141008.10240@st-andrews.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!strath-cs!st-and!gta
References: <92272.103620SMARTIN@ESOC.BITNET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!strath-cs!st-and!gta
From: gta@st-andrews.ac.uk (Graham Allan)
Newsgroups: comp.sys.acorn.tech
Subject: Re: Flicker-free Icon updating
Message-ID: <1992Sep29.141008.10240@st-andrews.ac.uk>
Date: 29 Sep 92 14:10:08 GMT
References: <92272.103620SMARTIN@ESOC.BITNET>
Organization: St. Andrews University
Lines: 23