Article View: rec.games.programmer
Article #515Re: Game libraries...
From: Khan
Date: Fri, 07 Aug 1992 12:38
Date: Fri, 07 Aug 1992 12:38
21 lines
1538 bytes
1538 bytes
In article <77309@ut-emx.uucp> baylor@ccwf.cc.utexas.edu (Baylor) writes: > > Stoooopid question... > How are you guys measuring frames per second. I'va always had >code to do stuff but damned if i have any idea of what speed it runs at. If you have a late-model Borland compiler, it likely came with a package called Turbo Profiler. TP can be used to measure the animation rate. Barring that, there is a set of high resolution timer routines from Byte magazine floating around (probably on SIMTEL20, although I haven't checked) which does the same sort of thing (although BTIMER isn't as sophisticated as TP). There's also a timer in the first few pages of Abrash's "Zen of Assembly Language." Others have reported that this book is back in print and available through PC Techniques magazine. I heartily recommend that you pick up a copy. All of these use the timer chip inside the PC to measure the time it takes your code to execute. If you also track the number of frames displayed, you can divide by the elapsed time to get your animation rate.
Technical Details
Message-ID:
<BsM5sz.Lqt@news.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!usenetReferences:
<77309@ut-emx.uucp>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!usenet From: tmkk@uiuc.edu (Khan) Subject: Re: Game libraries... References: <77309@ut-emx.uucp> Message-ID: <BsM5sz.Lqt@news.cso.uiuc.edu> Sender: usenet@news.cso.uiuc.edu (Net Noise owner) Organization: University of Illinois at Urbana Date: Fri, 7 Aug 1992 12:38:58 GMT Lines: 22