Path: utzoo!attcan!uunet!microsoft!t-stephp From: t-stephp@microsoft.UUCP (Stephen Poole) Newsgroups: comp.sys.mac.programmer Subject: Flickering cursor Message-ID: <5522@microsoft.UUCP> Date: 18 Apr 89 02:42:20 GMT Reply-To: t-stephp@microsoft.UUCP (Stephen Poole) Organization: Microsoft Corp., Redmond WA Lines: 24 I'm working on an LSC program that is very calculation intensive. My event loop checks for the usual events and after processing any makes a call to my calculation routine. This routine takes a small fraction of a second (typically about .1 - .2, I'd guess), during which time it calculates the path of a particle and whether or not it is going to result in anything visual. If so then I plot a short line or a single point. The problem is that my mouse cursor flickers horribly. Up until the point where I open a new window and begin these calculations it is perfectly steady, but this calculation routine is causing it to go nuts. It seems to me that the problem is just because I'm not calling WaitNextEvent frequently enough, but it will take some serious rewriting to check for events between every calculation instead of between groups of calculations. Am I correctly assessing the problem? Is there some general guideline about how frequently GetNextEvent must be called? Thanks for any help. -- -- Stephen D. Poole -- t-stephp@microsoft.UUCP -- Mac II Fanatic -- -- -- -- I'm just an Oregon Tech Software Engineering co-op at Micro- -- -- soft. Believe me, nobody here pays attention to my opinions! --