0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin synced 2025-01-30 18:21:38 +00:00
kralverde 979877f048 "populate noise" step of chunk generation (#319)
* implement populate noise step of chunk generation

* fix gitignore

* pass thru seed

* add counter for edge case

* add entire chunk test case

* remove eclipse file

* remove packet timing

* precompute float divisions

* unsafe speed up

* slight aquifer optimization

* tweak block pos packing

* optimize perlin map

* precompute aquifer random positions

* fix aquifer regression

* refactor samplers, add tests to aquifer, and move chunk extractor to the extractors

* fix base density function error and add a bunch of test cases

* ignore expensive tests by default

* remove un-needed lifetimes

* remove minecraft prefix from block lookups

* fix populate noise bench

* slight optimizations

* read files at runtime to speed up test compilation speed and remove ignores

* remove new lines from test data so people stop freaking out about line count

* make extractor the same

* leverage branch prediction

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2024-12-02 19:01:37 +01:00

2 lines
5.1 KiB
JSON

[ 1.5, 1.4921875, 1.484375, 1.4765625, 1.46875, 1.4609375, 1.453125, 1.4453125, 1.4375, 1.4296875, 1.421875, 1.4140625, 1.40625, 1.3984375, 1.390625, 1.3828125, 1.375, 1.3671875, 1.359375, 1.3515625, 1.34375, 1.3359375, 1.328125, 1.3203125, 1.3125, 1.3046875, 1.296875, 1.2890625, 1.28125, 1.2734375, 1.265625, 1.2578125, 1.25, 1.2421875, 1.234375, 1.2265625, 1.21875, 1.2109375, 1.203125, 1.1953125, 1.1875, 1.1796875, 1.171875, 1.1640625, 1.15625, 1.1484375, 1.140625, 1.1328125, 1.125, 1.1171875, 1.109375, 1.1015625, 1.09375, 1.0859375, 1.078125, 1.0703125, 1.0625, 1.0546875, 1.046875, 1.0390625, 1.03125, 1.0234375, 1.015625, 1.0078125, 1.0, 0.9921875, 0.984375, 0.9765625, 0.96875, 0.9609375, 0.953125, 0.9453125, 0.9375, 0.9296875, 0.921875, 0.9140625, 0.90625, 0.8984375, 0.890625, 0.8828125, 0.875, 0.8671875, 0.859375, 0.8515625, 0.84375, 0.8359375, 0.828125, 0.8203125, 0.8125, 0.8046875, 0.796875, 0.7890625, 0.78125, 0.7734375, 0.765625, 0.7578125, 0.75, 0.7421875, 0.734375, 0.7265625, 0.71875, 0.7109375, 0.703125, 0.6953125, 0.6875, 0.6796875, 0.671875, 0.6640625, 0.65625, 0.6484375, 0.640625, 0.6328125, 0.625, 0.6171875, 0.609375, 0.6015625, 0.59375, 0.5859375, 0.578125, 0.5703125, 0.5625, 0.5546875, 0.546875, 0.5390625, 0.53125, 0.5234375, 0.515625, 0.5078125, 0.5, 0.4921875, 0.484375, 0.4765625, 0.46875, 0.4609375, 0.453125, 0.4453125, 0.4375, 0.4296875, 0.421875, 0.4140625, 0.40625, 0.3984375, 0.390625, 0.3828125, 0.375, 0.3671875, 0.359375, 0.3515625, 0.34375, 0.3359375, 0.328125, 0.3203125, 0.3125, 0.3046875, 0.296875, 0.2890625, 0.28125, 0.2734375, 0.265625, 0.2578125, 0.25, 0.2421875, 0.234375, 0.2265625, 0.21875, 0.2109375, 0.203125, 0.1953125, 0.1875, 0.1796875, 0.171875, 0.1640625, 0.15625, 0.1484375, 0.140625, 0.1328125, 0.125, 0.1171875, 0.109375, 0.1015625, 0.09375, 0.0859375, 0.078125, 0.0703125, 0.0625, 0.0546875, 0.046875, 0.0390625, 0.03125, 0.0234375, 0.015625, 0.0078125, 0.0, -0.0078125, -0.015625, -0.0234375, -0.03125, -0.0390625, -0.046875, -0.0546875, -0.0625, -0.0703125, -0.078125, -0.0859375, -0.09375, -0.1015625, -0.109375, -0.1171875, -0.125, -0.1328125, -0.140625, -0.1484375, -0.15625, -0.1640625, -0.171875, -0.1796875, -0.1875, -0.1953125, -0.203125, -0.2109375, -0.21875, -0.2265625, -0.234375, -0.2421875, -0.25, -0.2578125, -0.265625, -0.2734375, -0.28125, -0.2890625, -0.296875, -0.3046875, -0.3125, -0.3203125, -0.328125, -0.3359375, -0.34375, -0.3515625, -0.359375, -0.3671875, -0.375, -0.3828125, -0.390625, -0.3984375, -0.40625, -0.4140625, -0.421875, -0.4296875, -0.4375, -0.4453125, -0.453125, -0.4609375, -0.46875, -0.4765625, -0.484375, -0.4921875, -0.5, -0.5078125, -0.515625, -0.5234375, -0.53125, -0.5390625, -0.546875, -0.5546875, -0.5625, -0.5703125, -0.578125, -0.5859375, -0.59375, -0.6015625, -0.609375, -0.6171875, -0.625, -0.6328125, -0.640625, -0.6484375, -0.65625, -0.6640625, -0.671875, -0.6796875, -0.6875, -0.6953125, -0.703125, -0.7109375, -0.71875, -0.7265625, -0.734375, -0.7421875, -0.75, -0.7578125, -0.765625, -0.7734375, -0.78125, -0.7890625, -0.796875, -0.8046875, -0.8125, -0.8203125, -0.828125, -0.8359375, -0.84375, -0.8515625, -0.859375, -0.8671875, -0.875, -0.8828125, -0.890625, -0.8984375, -0.90625, -0.9140625, -0.921875, -0.9296875, -0.9375, -0.9453125, -0.953125, -0.9609375, -0.96875, -0.9765625, -0.984375, -0.9921875, -1.0, -1.0078125, -1.015625, -1.0234375, -1.03125, -1.0390625, -1.046875, -1.0546875, -1.0625, -1.0703125, -1.078125, -1.0859375, -1.09375, -1.1015625, -1.109375, -1.1171875, -1.125, -1.1328125, -1.140625, -1.1484375, -1.15625, -1.1640625, -1.171875, -1.1796875, -1.1875, -1.1953125, -1.203125, -1.2109375, -1.21875, -1.2265625, -1.234375, -1.2421875, -1.25, -1.2578125, -1.265625, -1.2734375, -1.28125, -1.2890625, -1.296875, -1.3046875, -1.3125, -1.3203125, -1.328125, -1.3359375, -1.34375, -1.3515625, -1.359375, -1.3671875, -1.375, -1.3828125, -1.390625, -1.3984375, -1.40625, -1.4140625, -1.421875, -1.4296875, -1.4375, -1.4453125, -1.453125, -1.4609375, -1.46875, -1.4765625, -1.484375, -1.4921875, -1.5]