Vanilla-faithful overworld generator (final_density + multi-noise biomes), full connection lifecycle (status/login/configuration/play), chunk streaming, creative block editing, and the protocol/nbt/registry infrastructure.
9 lines
197 B
Go
9 lines
197 B
Go
package world
|
|
|
|
import "testing"
|
|
|
|
func BenchmarkGenerateTerrain(b *testing.B) {
|
|
gen := NewTerrainGenerator(0)
|
|
b.ResetTimer(); b.ReportAllocs()
|
|
for i := 0; i < b.N; i++ { _ = gen(int32(i), 0) }
|
|
}
|