diff options
author | whiterandrek | 2018-06-20 13:56:23 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | fc57a968187d5b0b50a9ee1d4aa257df676fb23e (patch) | |
tree | d485c9f7b686a7b4f811523948354664eb53c3eb /engines/pink | |
parent | e2ac931ccba6f193fa20cd2febb5f919da1b20b2 (diff) | |
download | scummvm-rg350-fc57a968187d5b0b50a9ee1d4aa257df676fb23e.tar.gz scummvm-rg350-fc57a968187d5b0b50a9ee1d4aa257df676fb23e.tar.bz2 scummvm-rg350-fc57a968187d5b0b50a9ee1d4aa257df676fb23e.zip |
PINK: removed FPS counter
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/director.cpp | 13 | ||||
-rw-r--r-- | engines/pink/director.h | 4 |
2 files changed, 2 insertions, 15 deletions
diff --git a/engines/pink/director.cpp b/engines/pink/director.cpp index e5af9905f9..fb298b9cef 100644 --- a/engines/pink/director.cpp +++ b/engines/pink/director.cpp @@ -36,27 +36,16 @@ Director::Director() } void Director::update() { - static uint32 time = g_system->getMillis(); - static uint32 times = 0; - for (uint i = 0; i < _sounds.size(); ++i) { _sounds[i]->update(); } + for (uint i = 0; i < _sprites.size(); ++i) { if (_sprites[i]->needsUpdate()) _sprites[i]->update(); } draw(); - - times++; - if (g_system->getMillis() - time >= 1000) { - debug("FPS: %u ", times); - sum += times; - count++; - time = g_system->getMillis(); - times = 0; - } } void Director::addSprite(ActionCEL *sprite) { diff --git a/engines/pink/director.h b/engines/pink/director.h index 0526959f0c..9c8945225d 100644 --- a/engines/pink/director.h +++ b/engines/pink/director.h @@ -64,14 +64,12 @@ public: Graphics::MacWindowManager &getWndManager() { return _wndManager; }; - uint32 count = 0; - uint32 sum = 0; - private: void draw(); void mergeDirtyRects(); void drawRect(const Common::Rect &rect); +private: Graphics::Screen _surface; Graphics::MacWindowManager _wndManager; Common::Array<Common::Rect> _dirtyRects; |