#spatial #grid #physics #collision #hash

superdupergrid

一个极其优化且安全的空间哈希网格

1 个不稳定版本

0.2.6 2024年7月30日

#74模拟

Download history 149/week @ 2024-07-29

每月下载量:149

GPL-3.0 许可证

20KB
187

superdupergrid

一个简单、优化、安全、符合GPLv3的Aspect批准的空间哈希网格。

基准测试

示例文件夹中包含基准测试工具。

> 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

无运行时依赖