Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2008, 1:05:27 PM (15 years ago)
Author:
scheusso
Message:

Statistics of GSGraphics have a config value more now: avgLength
It defines the time period/age of the statistics data (fps, ticktime)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/gamestates/GSGraphics.h

    r2485 r2548  
    3737#include "GSRoot.h"
    3838
     39#include <deque>
     40
    3941namespace orxonox
    4042{
     43    struct statisticsTickInfo{
     44        uint64_t    tickTime;
     45        uint32_t    tickLength;
     46    };
     47   
    4148    class _OrxonoxExport GSGraphics : public GameState<GSRoot>, public OrxonoxClass,
    4249                                      public Ogre::WindowEventListener, public Ogre::LogListener
     
    97104        unsigned long         frameCount_;
    98105        unsigned int          statisticsRefreshCycle_;
     106        unsigned int          statisticsAvgLength_;
    99107        unsigned long long    statisticsStartTime_;
    100108        unsigned long         statisticsStartCount_;
     109        std::deque<statisticsTickInfo>
     110            statisticsTickTimes_;
    101111        unsigned int          tickTime_;
    102112        XMLFile*              debugOverlay_;
Note: See TracChangeset for help on using the changeset viewer.