New answers tagged

1 vote

Consistent cross platform procedural generation

Using a noise-based RNG might be an option? It seems to work well, and generates its numbers via bit shifting, so there's no precision issues to get in the way. Not sure where the slides are, but the ...
  • 121
1 vote

Consistent cross platform procedural generation

Rather than designing your PCG around real number arithmetic and then trying to make it deterministic, it may be easier to start from this constraint and design around it. There are a wide variety of ...
  • 151
2 votes

Consistent cross platform procedural generation

As others pointed out, if you want true determinism, then avoid floating point variables and use integer math instead. If you need a large universe, use 64bit integers. Their resolution is good enough ...
  • 113k
7 votes

Consistent cross platform procedural generation

What I would be trying to do is to generate on multiple levels, where things at one level could be calculated from the level above with integer math. For example, at the top level I might draw a bunch ...
0 votes

Consistent cross platform procedural generation

You can just use regular floating point math (single precision or double precision). It's a myth (that maybe once upon a time had some truth to it) that floating point math gives different results on ...
24 votes
Accepted

Consistent cross platform procedural generation

The best resource I've found on this topic is Bruce Dawson's blog article "Floating-Point Determinism" It establishes that yes, in theory, you could get cross-platform determinism out of ...
  • 118k

Top 50 recent answers are included