• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

djeedai / bevy_hanabi / 30753133293
58%

Build:
DEFAULT BRANCH: main
Ran 02 Aug 2026 03:02PM UTC
Jobs 1
Files 35
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Aug 2026 02:54PM UTC coverage: 58.658% (+0.2%) from 58.445%
30753133293

push

github

web-flow
Parallelize GPU sorting (#555)

Switch GPU sorting of particles for ribbon effects from a naive
single-threaded insertion sort to a modern parallel sort.

This change introduces a modern parallel sort architecture, which
divides the sort task into 3 sequences of operations:
1. Intra-thread sorting of up to 16 elements with a simple odd-even
mergesort, into a local thread array.
2. Intra-workgroup "block sort" where all 64 threads of a workgroup
cooperate to mergesort those 64 sorted lists of 16 items into a sorted
list of 1024 items.
3. Final multi-pass mergesort taking lists of 1024 items and merging
them to obtain the final sorted array.

This change add state-of-the-art implementations for the first two
thread-level and workgroup-level sort passes. Parallelizing of the final
merge-sort pass is left for a future change, and is instead replaced
with a naive serial variant.

In the `worms.rs` example on an RTX 4070, this reduces the GPU time from
~16.32ms down to ~1.85ms (~11%), split between:

- The workgroup-level block sort (0.05ms).
- The subsequent merge sort, for cases where the total number of items
(particles) is > 1024 (0.55ms + 0.75ms + 0.51ms = 1.81ms; 3 passes).

228 of 389 new or added lines in 5 files covered. (58.61%)

6 existing lines in 3 files now uncovered.

5654 of 9639 relevant lines covered (58.66%)

678.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
109
41.59
-1.2% src/render/mod.rs
42
61.62
29.28% src/render/sort.rs
10
30.21
-1.34% src/plugin.rs

Coverage Regressions

Lines Coverage ∆ File
3
30.21
-1.34% src/plugin.rs
2
41.59
-1.2% src/render/mod.rs
1
61.62
29.28% src/render/sort.rs
Jobs
ID Job ID Ran Files Coverage
1 30753133293.1 02 Aug 2026 03:02PM UTC 35
58.66
GitHub Action Run
Source Files on build 30753133293
  • Tree
  • List 35
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 675257a3 on github
  • Prev Build on main (#30177227450)
  • Next Build on main (#30756173591)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc