Biome stripes should be optimized. #720
Labels
contributor friendly
this issue is limited in scope and/or knowledge of Cubyz internals, good for newcomers
engine
experimental
a feature or idea that will require lots of experimentation
optimization
a performance problem that should be addressed or an optimization idea
terrain
Milestone
Now that more biomes use it, specifically the lava_cave, this terrain feature has shown up in the profiler at around 10% contribution to the total time.
Specifically the
@mod
instructions seems to take the most of the time.This could probably be fixed using integer math and approximating the modulo+compare with multiplication+bit masking+compare.
The relevant code is in server/terrain/chunkgen/TerrainGenerator.zig
The text was updated successfully, but these errors were encountered: