Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!husc6!bunny!hor-res!berry
From: berry@hor-res.UUCP (No comment)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Problem with double-buffering and some 1-second interrupt annoyance
Summary: I've seen this before...
Message-ID: <229@hor-res.UUCP>
Date: 4 Jul 88 02:13:28 GMT
References: <4213@pasteur.Berkeley.Edu>
Organization: Horizon Research, Waltham MA
Lines: 37

In article <4213@pasteur.Berkeley.Edu>, koster@cory.Berkeley.EDU (Kevin Oster) writes:


> 
>   Everything works fine, everything is smooth, except at about one second
> intervals I get a little flicker, as if it is displaying the bitmap I am
> working on just for a single frame.
>   My theory is that at one second intervals the Amiga does some incredibly
> lengthy maintainance of say the disk drives, internal clock, whatever, that
> takes a long time. What I want to know is how can I fix this problem?

I have seen this before when I was fooling with double buffering. I am not
sure of the cause but I suspect you are on the right track. I was able to fix
it though ... 
 Here is a rough flow of what I did:

 To display a particular View,

 Forbid();
 WaitBOVP(&vp);
 MakeVPort(view,&vp);
 MrgCop(view);
 LoadView(view);
 Permit();

 This may not be the perfect solution, but it works great.
 It also rids you of that unsightly glitch every once in a while.

> 
> koster@cory.berkeley.edu


-- 
-Steve Berry- ...!bunny!hor-res!berry
"Dare to be gorgeous and unique. But don't ever be cryptic or otherwise
Unfathomable. Make it unforgettably great."
Intuition Reference Manual, pg 231.