diff options
author | Colin Snover | 2017-05-06 00:00:04 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-06 10:38:58 -0500 |
commit | 8b49313af30a283b7b9517b69c10a148e099cf01 (patch) | |
tree | 6e53d1ecde746f1aa7f5e1193b09ef2180dfb67d /engines/sci/graphics/palette32.h | |
parent | 91df45c6c5f11d6426a7c390e50932dd3016504e (diff) | |
download | scummvm-rg350-8b49313af30a283b7b9517b69c10a148e099cf01.tar.gz scummvm-rg350-8b49313af30a283b7b9517b69c10a148e099cf01.tar.bz2 scummvm-rg350-8b49313af30a283b7b9517b69c10a148e099cf01.zip |
SCI32: Fix terrible rendering performance when vsync is enabled
More than one call to OSystem::updateScreen per frame on systems
with vsync ruins performance because the call is blocked until
the next vsync interval.
This also fixes bad rendering performance with the OpenGL backend.
Diffstat (limited to 'engines/sci/graphics/palette32.h')
-rw-r--r-- | engines/sci/graphics/palette32.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sci/graphics/palette32.h b/engines/sci/graphics/palette32.h index 267ec39d96..0fcd7e00ab 100644 --- a/engines/sci/graphics/palette32.h +++ b/engines/sci/graphics/palette32.h @@ -240,11 +240,8 @@ public: /** * Copies all entries from `nextPalette` to `currentPalette` and updates the * backend's raw palette. - * - * @param updateScreen If true, this call will also tell the backend to draw - * to the screen. */ - void updateHardware(const bool updateScreen = true); + void updateHardware(); private: ResourceManager *_resMan; |