538
you are viewing a single comment's thread
view the rest of the comments
[-] bl4ckp1xx13@lemmy.dbzer0.com 2 points 15 hours ago

That makes sense, floating-point precision falls apart with large numbers but is pretty good with small numbers.

Perhaps there’s a mod that can swap out the position system to use doubles instead of floats? But I’m pretty sure that’s a Unity thing with its Transform positioning system so that’d be quite a challenge to change.

[-] Cethin@lemmy.zip 2 points 8 hours ago* (last edited 8 hours ago)

Yeah, there's no way to do that. You can use doubles yourself to track things, but the engine is always going to use floats. When you send data to the engine, it has to be in float form.

IIRC, UE5 actually switched to using doubles for everything. Floating point math is faster to perform, but computers are fast enough now they decided it was worth it. It can now accurately store positions much further away without losing as much precision.

KSA is also using doubles I think, on their custom engine. They can do a cool thing where they can render multiple vehicle views at once, in totally different locations. KSP couldn't do this because of floating point error.

this post was submitted on 13 Apr 2026
538 points (99.4% liked)

Open Source

46221 readers
492 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 6 years ago
MODERATORS