home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!sgigate!odin!surreal.asd.sgi.com!jimh
- From: jimh@surreal.asd.sgi.com (Jim Helman)
- Newsgroups: comp.sys.sgi
- Subject: Re: How to control animation frame rates?
- Message-ID: <JIMH.92Aug28124525@surreal.asd.sgi.com>
- Date: 28 Aug 92 17:45:25 GMT
- References: <1992Aug27.133349@gorgo.gsfc.nasa.gov>
- Sender: news@odin.corp.sgi.com (Net News)
- Organization: Home for Degenerate Physicists
- Lines: 33
- In-Reply-To: sullivan@gorgo.gsfc.nasa.gov's message of Thu, 27 Aug 1992 20: 33:49 GMT
- Nntp-Posting-Host: surreal.asd.sgi.com
-
-
- How can one measure animation frame rate on an Indigo Entry?
- I want to maintain a certain rate, but the complexity of each
- scene may vary.
-
- A major goal of IRIS Performer (SGI's new toolkit for real-time
- graphics and visual simulation) is to provide fixed frame rates
- for scenes of varying complexity. Performer can tell you how
- close each frame is to going over the specified frame time so
- you can adjust the scene complexity. Alternately, if the
- application provides different models (levels-of-detail),
- Performer can switch in simpler models automatically based on
- range, object pixel size and "graphics stress".
-
- What function returns the time most accurately?
-
- Performer provides a time function which uses fast (25-33Mhz)
- freerunning counters found on most machines. Otherwise, you
- could turn on the fast clock ("ftimer -f on") to get time of day
- to within approx 1ms (or 400us if you crank up FASTHZ in the
- kernel). The down side of ftimer is that the kernel will need
- to service clock interrupts much more often.
-
- Also, if you need rock solid fixed frame rates, a multiprocessor
- is best because it keeps daemons, networking and such out of
- your hair.
-
- rgds,
-
- -jim helman
-
- jimh@surreal.asd.sgi.com
- 415/390-1151
-