From f9595b11fc2bef08d84a00b81f9b2884f77897b0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 26 Dec 2014 23:18:54 +0200 Subject: ZVISION: Add an FPS timer (accessible with F10, or the "FRAME" cheat) --- engines/zvision/zvision.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/zvision/zvision.h') diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h index 6664d0cd5d..5482060cd0 100644 --- a/engines/zvision/zvision.h +++ b/engines/zvision/zvision.h @@ -119,6 +119,8 @@ private: Common::Event _event; int _frameRenderDelay; + int _renderedFrameCount; + int _fps; int16 _mouseVelocity; int16 _keyboardVelocity; bool _doubleFPS; @@ -197,6 +199,11 @@ public: void setRenderDelay(uint); bool canRender(); + static void fpsTimerCallback(void *refCon); + void fpsTimer(); + int getFPS() const { + return _fps; + } void loadSettings(); void saveSettings(); -- cgit v1.2.3