Skip to content

Commit d05b15d

Browse files
author
Ilya Zhuravlev
committedAug 25, 2013
Add a setting for HighPrecisionFPU (fixes #763).
1 parent 151617c commit d05b15d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
 

‎minetest.conf.example

+3
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,6 @@
389389
#modstore_download_url = https://forum.minetest.net/media/
390390
#modstore_listmods_url = https://forum.minetest.net/mmdb/mods/
391391
#modstore_details_url = https://forum.minetest.net/mmdb/mod/*/
392+
393+
# Makes DirectX work with LuaJIT. Disable if it causes troubles.
394+
#high_precision_fpu = true

‎src/defaultsettings.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ void set_default_settings(Settings *settings)
280280
settings->setDefault("modstore_listmods_url", "https://forum.minetest.net/mmdb/mods/");
281281
settings->setDefault("modstore_details_url", "https://forum.minetest.net/mmdb/mod/*/");
282282

283+
settings->setDefault("high_precision_fpu", "true");
283284
}
284285

285286
void override_default_settings(Settings *settings, Settings *from)

‎src/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ int main(int argc, char *argv[])
12881288
params.Stencilbuffer = false;
12891289
params.Vsync = vsync;
12901290
params.EventReceiver = &receiver;
1291+
params.HighPrecisionFPU = g_settings->getBool("high_precision_fpu");
12911292

12921293
nulldevice = createDeviceEx(params);
12931294

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

13441346
device = createDeviceEx(params);
13451347

0 commit comments

Comments
 (0)
Please sign in to comment.