realbasic-games
[Top] [All Lists]

Re: fast, smooth updates

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: fast, smooth updates
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 23 Jul 2003 07:33:43 -0700
At 11:55 PM -0400 7/22/03, John Tsombakos wrote:

The Timer and Thread methods fluctuate quite a bit when I run the mouse over the 3d area. (actually, I just tried again, and moving the mouse anywhere using the timer causes the time to bounce around.

Yeah, they do.  This was one of Frank's points, and I see he's quite right.

 Maybe some MouseOver event is firing?

I don't think so; it seems to happen even when you're wiggling the mouse over the desktop, not over the window at all (right)?

And the thread method runs generally the same time, but has a bunch of spikes as it goes. Must be background processes that take some time.

Yes, that's what I see too.

Clearly the tight loop is the best frame driver, at least in this app. (I get about 150 fps on my machine, with no particular impact from mouse movements.) I do hope to get some time to do some profiling in the other cases, though.

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>