Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

FrameRateTracker.cpp File Reference

Implements CFrameRateTracker. More...

#include "../Include/FrameRateTracker.h"
#include "../Include/FlyLegacy.h"
#include "../Include/Ui.h"

Go to the source code of this file.


Detailed Description

A frame rate tracker is a buffered set of samples used to track frame rates. Samples are stored in a float array of size 'maxSamples'. This maximum buffer size must be specified in the constructor, and may also be changed on the fly by calling SetMaxSamples. This is an expensive operation since it requires that all previously stored samples be copied to the new buffer, so it should be done sparingly. The sample buffer is a circular buffer. As samples are added, the number of 'actualSamples' increases up to 'maxSamples', after which older samples are overwritten. The 'nextSample' member indicates the array index of the next sample to be written.

Definition in file FrameRateTracker.cpp.
SourceForge.net Logo Documentation generated by doxygen