Re:Box2d Revisited
by gillianseed on Thursday April 25, 2013 @11:14PM
(#5611292)
What about -Ofast which enables -ffast-math?
The makefile supplied with the repo specifies -ffast-math. It uses these CFLAGS:
CFLAGS=-s -O3 -msse -mfpmath=sse -ffast-math -fomit-frame-pointer -IBox2D_v2.2.1 -DNDEBUG=1
Using -Ofast gets the same results as -O2.
Re:Box2d Revisited
by gillianseed on Friday April 26, 2013 @09:27AM
(#5612750)
Thanks for the info, I should have guessed that he enabled -ffast-math manually.
Changing gcc to use -O2 instead of -O3 gets: 1.562500 +/- 3.630922.