Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deterministic float calculations #28

Open
Krakean opened this issue May 12, 2018 · 1 comment
Open

Deterministic float calculations #28

Krakean opened this issue May 12, 2018 · 1 comment

Comments

@Krakean
Copy link

Krakean commented May 12, 2018

Hello.
Is GameMath support deterministic calculations for floats (basically, restrict precision / fixed point)? Its specifically required to make a game like an RTS networked.
Some reading, in case if someone not familiar with the subject - http://gafferongames.com/networking-for-game-programmers/floating-point-determinism/

@npruehs
Copy link
Owner

npruehs commented Sep 4, 2018

Hey @Krakean!

No, you'd basically have to build your own fixed point arithmetic, and that hasn't been done for this library yet. Feel free to open a pull request in case you're building it yourself!

Also, note that, strictly speaking, fixed point arithmetic is not necessary to build an RTS, but to use the lockstep approach. You could decide to build an RTS without lockstep, if you want to :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants