Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2009, 10:16:37 PM (15 years ago)
Author:
rgrieder
Message:

Exported larger parts of the main into separate functions to have a clearer view. Also fixed a bug and improved fps limiter for Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/Game.h

    r3349 r3352  
    133133        void unloadState(GameState* state);
    134134
     135        // Main loop structuring
     136        void updateGameStateStack();
     137        void updateGameStates();
     138        void updateStatistics();
     139        void updateFPSLimiter();
     140
    135141        std::map<std::string, GameState*>    gameStates_;
    136142        std::vector<GameState*>              activeStates_;
     
    153159        float                           avgFPS_;
    154160        float                           avgTickTime_;
     161        int                             excessSleepTime_;
     162        unsigned int                    minimumSleepTime_;
    155163
    156164        static std::map<std::string, GameStateInfo> gameStateDeclarations_s;
Note: See TracChangeset for help on using the changeset viewer.