diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-21 23:00:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-21 23:00:31 +0300 |
commit | 4fb515c4d3ec3b2109c7e406ae3169c534854513 (patch) | |
tree | da7c94e59d8061f500e1d8ba22a495cc1091b853 | |
parent | 5a392e77e1d77becd1ada0bdf3984c7260b8e287 (diff) | |
download | plus-4fb515c4d3ec3b2109c7e406ae3169c534854513.tar.gz plus-4fb515c4d3ec3b2109c7e406ae3169c534854513.tar.bz2 plus-4fb515c4d3ec3b2109c7e406ae3169c534854513.tar.xz plus-4fb515c4d3ec3b2109c7e406ae3169c534854513.zip |
Add option for delayed OpenGL images load enable/disable.
-rw-r--r-- | src/defaults.cpp | 1 | ||||
-rw-r--r-- | src/game.cpp | 3 | ||||
-rw-r--r-- | src/gui/setup_perfomance.cpp | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index e8f421216..30cbc8a57 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -259,6 +259,7 @@ DefaultsData* getConfigDefaults() AddDEF(configData, "newtextures", true); AddDEF(configData, "videodetected", false); AddDEF(configData, "hideErased", false); + AddDEF(configData, "enableDelayedAnimations", true); return configData; } diff --git a/src/game.cpp b/src/game.cpp index 75317edac..253f9fb67 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -387,7 +387,8 @@ Game::Game(): top->add(viewport); viewport->requestMoveToBottom(); - AnimatedSprite::setEnableCache(mainGraphics->getOpenGL()); + AnimatedSprite::setEnableCache(mainGraphics->getOpenGL() + && config.getBoolValue("enableDelayedAnimations")); createGuiWindows(); diff --git a/src/gui/setup_perfomance.cpp b/src/gui/setup_perfomance.cpp index 8d6592315..e6cd75436 100644 --- a/src/gui/setup_perfomance.cpp +++ b/src/gui/setup_perfomance.cpp @@ -66,6 +66,9 @@ Setup_Perfomance::Setup_Perfomance() new SetupItemCheckBox(_("Enable map reduce (Software)"), "", "enableMapReduce", this, "enableMapReduceEvent"); + new SetupItemCheckBox(_("Enable delayed images load (OpenGL)"), "", + "enableDelayedAnimations", this, "enableDelayedAnimationsEvent"); + new SetupItemLabel(_("Better quality (disable for better perfomance)"), "", this); |