Skip to content

Is LimboAI cross-platform deterministic? #268

Answered by limbonaut
arnaucmd asked this question in Q&A
Discussion options

You must be logged in to vote

I believe, if you use random number generator and rollback to a prior certain state, you'd need to make sure that the generator reproduces the same sequence of numbers from that point. Otherwise, you won't be able to replay state reliably.
LimboAI uses floats in multiple places. We use accumulated delta time in each task to track passage of time in the tree. Tasks like BTWait & BTTimeout for example. That's something to keep in mind. Typically, we use delta time in calculating motion - I don't know how that behaves with netcode. The plugin is open source, so you can tweak things as much as you need it for your project. I believe, the biggest obstacle would be the state capturing and resto…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@arnaucmd
Comment options

@limbonaut
Comment options

Answer selected by arnaucmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants