Closed GoogleCodeExporter closed 9 years ago
I think the code was lifted from Bullet source once upon a time. I have not
tested if multiple exists is faster.
http://code.google.com/p/bullet/source/browse/trunk/src/LinearMath/btAabbUtil2.h
#214
I shall remove the dupe.
Original comment by memono...@gmail.com
on 23 Aug 2010 at 3:07
BTW: The company I work for builds all code using "Unity" files (I think
they're also called FastBuild??). Anyway, they basically have a master CPP file
that includes a lot of other CPP files. Any duplicate code causes the compiler
to barf. The function "opposite" is also defined twice.
I appreciate that we could build the code as separate CPP files - so I will
understand if you won't fix it...however it is just these two functions that
are causing the problem: overlapBoxes & opposite.
Original comment by armstron...@gmail.com
on 23 Aug 2010 at 4:59
Fixed in R202.
Original comment by memono...@gmail.com
on 23 Aug 2010 at 5:41
I did a test of the multiple exits - and it's no faster. I guess the compiler
does a good job of optimising the function. The branchless select in Bullet
would be good to use...it's just a case of providing a platform independent
implementation (otherwise known as a macro).
Anyway - I doubt it's a bottleneck.
Original comment by armstron...@gmail.com
on 24 Aug 2010 at 3:44
Original issue reported on code.google.com by
armstron...@gmail.com
on 23 Aug 2010 at 3:02