3 ms·
100000ly / 2^64 = 51 meters and change. And your simulation is probably faster with appropriate int math than any float math will be. Transforming to relative
by jerf 16y ago
100000ly / 2^64 = 51 meters and change. And your simulation is probably faster with appropriate int math than any float math will be.
Transforming to relative coordinates doesn't solve all the problems; you do your local calculation with the improved precision, but presumably at some point you then throw that back away again when you translate back to the global coords.
- palish 16y ago"And your simulation is probably faster with appropriate int math than any float math will be." This isn't true for modern CPUs, especially if you use SIMD vector operations.