godot/modules
Hein-Pieter van Braam cada03eedb Don't use -ffast-math or other unsafe math optimizations
Godot supports many different compilers and for production releases we
have to support 3 currently: GCC8, Clang6, and MSVC2017. These compilers
all do slightly different things with -ffast-math and it is causing
issues now. See #24841, #24540, #10758, #10070. And probably other
complaints about physics differences between release and release_debug
builds.

I've done some performance comparisons on Linux x86_64. All tests are
ran 20 times.

Bunnymark: (higher is better)
(bunnies)    min    max  stdev average
fast-math   7332   7597    71     7432
this pr     7379   7779   108     7621 (102%)

FPBench (gdscript port http://fpbench.org/) (lower is better)
(ms)
fast-math  15441  16127   192    15764
this pr    15671  16855   326    16001  (99%)

Float_add (adding floats in a tight loop) (lower is better)
(sec)
fast-math   5.49   5.78  0.07     5.65
this pr     5.65   5.90  0.06     5.76  (98%)

Float_div (dividing floats in a tight loop) (lower is better)
(sec)
fast-math  11.70  12.36  0.18    11.99
this pr    11.92  12.32  0.12    12.12  (99%)

Float_mul (multiplying floats in a tight loop) (lower is better)
(sec)
fast-math  11.72  12.17  0.12    11.93
this pr    12.01  12.62  0.17    12.26  (97%)

I have also looked at FPS numbers for tps-demo, 3d platformer, 2d
platformer, and sponza and could not find any measurable difference.

I believe that given the issues and oft-reported (physics) glitches on
release builds I believe that the couple of percent of tight-loop
floating point performance regression is well worth it.

This fixes #24540 and fixes #24841

(cherry picked from commit e5b335d367)
2019-07-03 15:53:22 +02:00
..
bullet `GodotRestInfoContactResultCallback::addSingleResult` now returns normal 2019-07-03 15:50:10 +02:00
dds Fixed DDS loader according to issue #22530 2019-07-03 14:27:25 +02:00
enet Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
etc Don't use -ffast-math or other unsafe math optimizations 2019-07-03 15:53:22 +02:00
freetype Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
gdnative Fix possible crash at NativeScript::get_base_script 2019-07-03 13:35:41 +02:00
gdscript Fix crash on signal/resume to dangling target 2019-07-03 15:16:33 +02:00
gridmap Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
hdr Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
jpg Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
mobile_vr Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
mono Prevent "cannot use a string pattern on a bytes-like object" 2019-07-03 13:58:55 +02:00
ogg Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
openssl Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
opus Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
pvr Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
recast Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
regex Assign pointer null in RegEx::clear to avoid double free on destruction. 2019-07-03 15:01:37 +02:00
squish Build squish decompression in runtime 2019-07-03 15:34:08 +02:00
stb_vorbis Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
svg Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tga Fix bits_per_pixel validation in BMP and TGA loader modules. 2019-07-03 13:02:45 +02:00
thekla_unwrap Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
theora Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
tinyexr Fix loading EXR with alpha channel 2019-07-03 15:50:46 +02:00
visual_script Fix Visual Script duplicate issue 2019-07-03 13:35:41 +02:00
vorbis Update copyright statements to 2019 2019-01-03 11:41:35 +01:00
webm Android: Add support for x86_64 architecture 2019-01-16 12:51:56 +01:00
webp libwebp: Sync with upstream 1.0.2 2019-06-04 10:32:43 +02:00
SCsub - Improves portability in joystick buttons enum 2018-01-24 19:12:54 -03:00
register_module_types.h Update copyright statements to 2019 2019-01-03 11:41:35 +01:00