supergrid

Crates.iosupergrid
lib.rssupergrid
version0.2.6
sourcesrc
created_at2023-06-15 22:04:35.177569
updated_at2023-12-27 20:30:44.890791
descriptionAn extremely optimized (safe) spatial hash grid.
homepage
repositoryhttps://github.com/UE2020/supergrid
max_upload_size
id891558
size54,160
Aspect (UE2020)

documentation

README

supergrid

A simple, optimized, safe spatial hash grid.

Benchmark

A benchmarking tool is included in the examples folder.

> RUSTFLAGS='-C target-cpu=native' cargo build --release --example bench
> ./target/release/examples/bench --cell-size 9 --count 10000 --width 100000 --height 100000 --min-size 10 --max-size 1000
Setup:
	Arena width:  100,000
	Arena height: 100,000
	Cell size:    512x512
	Entity count: 10,000
	Minimum entity size:  10x10
	Maximum entity size:  1000x1000
Took 1.866101ms to insert 10,000 entities
Took 3.663191ms to probe 10,000 entities
Collisions: 32,900; average: 3.29
Commit count: 25

cargo fmt