Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a setting for HighPrecisionFPU (fixes #763).
  • Loading branch information
Ilya Zhuravlev committed Aug 25, 2013
1 parent 151617c commit d05b15d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minetest.conf.example
Expand Up @@ -389,3 +389,6 @@
#modstore_download_url = https://forum.minetest.net/media/
#modstore_listmods_url = https://forum.minetest.net/mmdb/mods/
#modstore_details_url = https://forum.minetest.net/mmdb/mod/*/

# Makes DirectX work with LuaJIT. Disable if it causes troubles.
#high_precision_fpu = true
1 change: 1 addition & 0 deletions src/defaultsettings.cpp
Expand Up @@ -280,6 +280,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("modstore_listmods_url", "https://forum.minetest.net/mmdb/mods/");
settings->setDefault("modstore_details_url", "https://forum.minetest.net/mmdb/mod/*/");

settings->setDefault("high_precision_fpu", "true");
}

void override_default_settings(Settings *settings, Settings *from)
Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -1288,6 +1288,7 @@ int main(int argc, char *argv[])
params.Stencilbuffer = false;
params.Vsync = vsync;
params.EventReceiver = &receiver;
params.HighPrecisionFPU = g_settings->getBool("high_precision_fpu");

nulldevice = createDeviceEx(params);

Expand Down Expand Up @@ -1340,6 +1341,7 @@ int main(int argc, char *argv[])
params.Stencilbuffer = false;
params.Vsync = vsync;
params.EventReceiver = &receiver;
params.HighPrecisionFPU = g_settings->getBool("high_precision_fpu");

device = createDeviceEx(params);

Expand Down

0 comments on commit d05b15d

Please sign in to comment.