| Crates.io | bevy_radix_sort |
| lib.rs | bevy_radix_sort |
| version | 0.15.0 |
| created_at | 2025-03-15 06:28:23.403918+00 |
| updated_at | 2025-03-15 06:28:23.403918+00 |
| description | A GPU-based radix sort plugin for Bevy |
| homepage | |
| repository | https://github.com/AllenPocketGamer/bevy_radix_sort |
| max_upload_size | |
| id | 1593354 |
| size | 608,164 |
A low-level, high-performance GPU-based radix sort plugin for Bevy, optimized for sorting key/value pairs of type u32.
radix sort implementation fully executed on the GPUu32 key/value pairsAdd the following dependency to your Cargo.toml:
[dependencies]
bevy_radix_sort = "0.15.0"
Important Note on GPU Benchmarking:
Designing automated GPU benchmarks in Bevy presents significant challenges. Benchmark results can vary widely across different platforms, hardware configurations, and driver versions, making it difficult to provide standardized performance metrics.
For accurate performance analysis, I recommend using GPU-specific profiling tools:
These tools provide detailed insights into GPU execution times, memory usage, and potential bottlenecks that simple timing measurements cannot capture.
Below are benchmark results from testing on an NVIDIA RTX 4070 Ti Super:

| Number of Key-Value Pairs | Execution Time (ms) |
|---|---|
| 10,000 | 0.12 |
| 100,000 | 0.19 |
| 1,000,000 | 0.43 |
| 10,000,000 | 2.30 |
Note: Performance may vary based on system configuration, driver version, and concurrent GPU workloads.
Check out the example implementation to see how to integrate the radix sort into your Bevy application.
Contributions are welcome! Feel free to submit issues or pull requests on our GitHub repository.
Licensed under either of
at your option.