Oleh Derevenko
-- Skype with underscore
You don't often get email from redato...@gmail.com.
Learn why this is important
|
You received this message because you are subscribed to a topic in the Google Groups "ode-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ode-users/RKFsnL3fY0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ode-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/AS4PR07MB889986F7E4FD88F848F2AF59DD062%40AS4PR07MB8899.eurprd07.prod.outlook.com.
Oleh Derevenko
-- Skype with underscore
You don't often get email from redato...@gmail.com.
Learn why this is important
|
Why would you want to use the single precision library if computations are performed in hardware and the hardware is internally doing these computations at full precision but then may truncate the result to make it "single precision"?
Oleh Derevenko
-- Skype with underscore
From: ode-...@googlegroups.com <ode-...@googlegroups.com> on behalf of Gwentarino Kripperino lkjdsfa <redato...@gmail.com>Sent: Wednesday, April 10, 2024 3:45To: ode-users <ode-...@googlegroups.com>
Subject: [ode-users] ODE test do not work when compiling single precision library
You don't often get email from redato...@gmail.com. Learn why this is important I noticed that the epsilon used in collision_point_depth.cpp is too small for the single precision library, so I added the following modification
```
#ifdef CCD_IDEDOUBLE
#define TOLERANCE 1e-12
#else
#define TOLERANCE 1.19e-07
#endif
```
this epsilon was derived from the Wikipedia article about epsilon.
of course, every instance of 1e-12 needs to be replaced with TOLERANCE.
> Either way, the option exist, so the test should function when compiling for that option, or if the single precision version really is useless, it should be removed.
I agree with that.
And I agree with with Oleh's statement that single precision is
(probably) strictly worse. If I remember correctly, modern CPUs
(at least desktop CPUs) really are faster at double precision than
at single precision operations.
There maybe situations though where single precision is
preferable, for example, where memory is a concern (think large
trimeshes), or where other libraries in a project require
single-precision (and conversion just adds unnecessary
complexity), or old projects where migration from single to double
is just too costly.
I think the problem is that this project (like many others) is
run by volunteers, so things will only get fixed (or removed) if
someone volunteers to do that :-).
Best,
Til
--
You received this message because you are subscribed to the Google Groups "ode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ode-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/AS4PR07MB8899B14C4F8BCC9866A7414ADD052%40AS4PR07MB8899.eurprd07.prod.outlook.com.
--
You received this message because you are subscribed to a topic in the Google Groups "ode-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ode-users/RKFsnL3fY0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ode-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/AS4PR07MB8899B14C4F8BCC9866A7414ADD052%40AS4PR07MB8899.eurprd07.prod.outlook.com.
Oleh Derevenko
-- Skype with underscore
Oleh Derevenko
-- Skype with underscore
You don't often get email from redato...@gmail.com.
Learn why this is important
|
You don't often get email from redato...@gmail.com.
Learn why this is important
|
Hi Gwentarino Kripperino lkjdsfa,
Alas, I can't see the problem you mentioned.
--
You received this message because you are subscribed to a topic in the Google Groups "ode-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ode-users/RKFsnL3fY0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ode-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/AS4PR07MB8899330D0DDD5FBAA3980F65DDEB2%40AS4PR07MB8899.eurprd07.prod.outlook.com.
You don't often get email from redato...@gmail.com.
Learn why this is important
|