summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.h
diff options
context:
space:
mode:
authormadcamel@gmail.com <madcamel@gmail.com>2010-10-16 14:35:24 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-17 00:35:41 +0200
commit9824ccf5946c86df1cf497b797c5f3da5d481d28 (patch)
treee4fde49c98b6352c5336e4a16d551417fcf256cd /src/gui/setup_video.h
parentbc409be3aa785f3646ad0f2372a3da9cf0783c77 (diff)
downloadmana-client-9824ccf5946c86df1cf497b797c5f3da5d481d28.tar.gz
mana-client-9824ccf5946c86df1cf497b797c5f3da5d481d28.tar.bz2
mana-client-9824ccf5946c86df1cf497b797c5f3da5d481d28.tar.xz
mana-client-9824ccf5946c86df1cf497b797c5f3da5d481d28.zip
Added Low CPU Mode toggle in video setup. Defaults to On.
This disables the Image::setAlpha() function, which uses 60% of the client's CPU cycles. When enabled, visual quality is slightly decreased, especially with the particle system. Toggling this setting On from an Off state requires a client restart or the graphics look quite funny. Bertram's addition: - Renamed 'Low CPU' to 'Disable transparency (Low CPU)' in the gui for better understanding. - Removed the sprite display with 30% opacity when disabling transparency since it made monsters and drops be drawn above all layers at full opacity. - Made the OpenGL mode disable the 'low CPU mode'. - Fixed the GUI logic as much as possible. Please note that the GUI opacity slider stays enabled when transparency is disabled even if told to be disabled in that case. Reviewed-by: CodyMartin, 4144, MadCamel.
Diffstat (limited to 'src/gui/setup_video.h')
-rw-r--r--src/gui/setup_video.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/setup_video.h b/src/gui/setup_video.h
index ae0786b1..0f8a1e70 100644
--- a/src/gui/setup_video.h
+++ b/src/gui/setup_video.h
@@ -62,6 +62,7 @@ class Setup_Video : public SetupTab, public gcn::ActionListener,
bool mPickupParticleEnabled;
double mOpacity;
int mFps;
+ bool mLowCPUEnabled;
Being::Speech mSpeechMode;
ModeListModel *mModeListModel;
@@ -106,6 +107,8 @@ class Setup_Video : public SetupTab, public gcn::ActionListener,
int mFontSize;
gcn::DropDown *mFontSizeDropDown;
+
+ gcn::CheckBox *mLowCPUCheckBox;
};
#endif