You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Domin
Post
by Domin » Mon Jan 26, 2004 2:42 pm
CSceneCollisionManager.h line 123 in 0.4.2 source
f32 sqrtD = (f32)sqrt(determinant); ---> isn't faster to call f32 sqrtD = sqrtf(determinant);?
Flo
Posts: 11 Joined: Mon Dec 01, 2003 2:03 pm
Location: Germany
Post
by Flo » Mon Jan 26, 2004 3:03 pm
yeah, but the result of this square root still have to be converted into a f32
--> f32 sqrtD = (f32)sqrtf(determinant);
but the effect won't be very high
Domin
Post
by Domin » Mon Jan 26, 2004 5:12 pm
No - sqrtf returns float not double...
Flo
Posts: 11 Joined: Mon Dec 01, 2003 2:03 pm
Location: Germany
Post
by Flo » Mon Jan 26, 2004 6:12 pm
i know that sqrtf returns a float, but you have to convert it in f32 anyway