home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!access.usask.ca!regina!haidl
- From: haidl@cs.uregina.ca (Mark Haidl)
- Subject: Re: How to control animation frame rates?
- Message-ID: <1992Aug27.230509.4262@regina.cs.uregina.ca>
- Sender: news@regina.cs.uregina.ca
- Organization: University of Regina
- References: <1992Aug27.133349@gorgo.gsfc.nasa.gov> <p3vkrbk@fido.asd.sgi.com>
- Date: Thu, 27 Aug 1992 23:05:09 GMT
- Lines: 20
-
- mds@sgi.com (Mark Stadler) writes:
-
- >In article <1992Aug27.133349@gorgo.gsfc.nasa.gov> sullivan@gorgo.gsfc.nasa.gov (Dan sullivan) writes:
- >> 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. Is the best way to do this counting the number of scenes
- >>per second and adjusting accordingly? What function returns the time
- >>most accurately? Any tips?
- >> Thanks, Dan
- >>
- >check out the swapinterval() man page. using this call, you can specify
- >the worst case frame and force swapbuffers() to swap at that rate.
- >--
- >-- mds [aka Mark D Stadler mds@sgi.com ...!uunet!sgi!mds (415)335-1327]
- Note that swapinterval was broken in 4.0.1-4.0.4 on our PIs and Indigo.
- I would assume it is fixed under 4.0.5.(We reported it back at 4.0.1)
- --
- Mark Haidl, Systems Manager, Dept of Computer Science, U of Regina, Canada
- haidl@cs.uregina.ca, regina!mercury!haidl
- Phone: (306)585-4977, Fax: -5205
-