diff options
author | madcamel@gmail.com <madcamel@gmail.com> | 2010-10-16 14:35:24 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-10-17 00:35:41 +0200 |
commit | 9824ccf5946c86df1cf497b797c5f3da5d481d28 (patch) | |
tree | e4fde49c98b6352c5336e4a16d551417fcf256cd /src/client.cpp | |
parent | bc409be3aa785f3646ad0f2372a3da9cf0783c77 (diff) | |
download | mana-9824ccf5946c86df1cf497b797c5f3da5d481d28.tar.gz mana-9824ccf5946c86df1cf497b797c5f3da5d481d28.tar.bz2 mana-9824ccf5946c86df1cf497b797c5f3da5d481d28.tar.xz mana-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/client.cpp')
-rw-r--r-- | src/client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 2d5bdc3f..0b62a48d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1107,6 +1107,7 @@ void Client::initConfiguration() config.setValue("customcursor", true); config.setValue("useScreenshotDirectorySuffix", true); config.setValue("ChatLogLength", 128); + config.setValue("lowcpu", true); // Checking if the configuration file exists... otherwise create it with // default options. |