home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13019 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.7 KB

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