I created patch for optionable starfields from programming work. Because I haven't svn write access yet, I post patch here.
Code:
### Eclipse Workspace Patch 1.0
#P FreeOrion
Index: default/eng_stringtable.txt
===================================================================
--- default/eng_stringtable.txt (revision 2702)
+++ default/eng_stringtable.txt (working copy)
@@ -153,6 +153,9 @@
OPTIONS_DB_GALAXY_MAP_GAS
Render gassy substance around systems to give galaxy shape. May slow rendering on older systems.
+OPTIONS_DB_GALAXY_MAP_STARFIELDS
+Render starsfields around systems. May slow rendering on older systems.
+
OPTIONS_DB_OPTIMIZED_SYSTEM_RENDERING
Use fancy optimized OpenGL 1.5 rendering for systems on galaxy map. May crash on older graphics hardware.
@@ -872,6 +875,9 @@
OPTIONS_GALAXY_MAP_GAS
Galaxy map gas rendering
+OPTIONS_GALAXY_MAP_STARFIELDS
+Galaxy map starfields rendering
+
OPTIONS_OPTIMIZED_SYSTEM_RENDERING
Optimized system rendering
Index: UI/MapWnd.cpp
===================================================================
--- UI/MapWnd.cpp (revision 2702)
+++ UI/MapWnd.cpp (working copy)
@@ -80,6 +80,7 @@
db.Add("UI.chat-hide-interval", "OPTIONS_DB_UI_CHAT_HIDE_INTERVAL", 10, RangedValidator<int>(0, 3600));
db.Add("UI.chat-edit-history", "OPTIONS_DB_UI_CHAT_EDIT_HISTORY", 50, RangedValidator<int>(0, 1000));
db.Add("UI.galaxy-gas-background", "OPTIONS_DB_GALAXY_MAP_GAS", true, Validator<bool>());
+ db.Add("UI.galaxy-starfields", "OPTIONS_DB_GALAXY_MAP_STARFIELDS", true, Validator<bool>());
db.Add("UI.optimized-system-rendering", "OPTIONS_DB_OPTIMIZED_SYSTEM_RENDERING", true, Validator<bool>());
db.Add("UI.starlane-thickness", "OPTIONS_DB_STARLANE_THICKNESS", 2.5, RangedValidator<double>(0.1, 15.0));
db.Add("UI.resource-starlane-colouring", "OPTIONS_DB_RESOURCE_STARLANE_COLOURING", true, Validator<bool>());
@@ -1760,6 +1761,9 @@
void MapWnd::RenderStarfields()
{
+ if (!GetOptionsDB().Get<bool>("UI.galaxy-starfields"))
+ return;
+
glColor3d(1.0, 1.0, 1.0);
GG::Pt origin_offset =
Index: UI/OptionsWnd.cpp
===================================================================
--- UI/OptionsWnd.cpp (revision 2702)
+++ UI/OptionsWnd.cpp (working copy)
@@ -731,6 +731,7 @@
EndSection();
BeginSection(UserString("OPTIONS_GALAXY_MAP"));
BoolOption("UI.galaxy-gas-background", UserString("OPTIONS_GALAXY_MAP_GAS"));
+ BoolOption("UI.galaxy-starfields", UserString("OPTIONS_GALAXY_MAP_STARFIELDS"));
BoolOption("UI.optimized-system-rendering", UserString("OPTIONS_OPTIMIZED_SYSTEM_RENDERING"));
DoubleOption("UI.starlane-thickness", UserString("OPTIONS_STARLANE_THICKNESS"));
BoolOption("UI.resource-starlane-colouring", UserString("OPTIONS_RESOURCE_STARLANE_COLOURING"));