3 ms·
Why not describe the world space in integers? Where 1 is the Planck length of the simulation? Is there a “lossy compression” benefit to describing space with f
by Waterluvian 4y ago
Why not describe the world space in integers? Where 1 is the Planck length of the simulation?
Is there a “lossy compression” benefit to describing space with floats?
- Dylan16807 4y agoIntegers will improve your range somewhat, but not that much. If you set 2^16 to be a meter, then you still can't go past 65km. And as a downside now you have to be extra careful your derived numbers don't go out of range.
- veltas 4y agoIf you set the unit to 1mm you can reach like 20% of the way to Proxima Centauri with Sol as origin.
- Dylan16807 4y agoThat's 64 bit. If you were using 64 bit floats you didn't have problems in the first place. Also a granularity of 1mm will make slow movement complicated to calculate correctly. Consider updating at 60Hz and having an object that moves 1 inch per second.