这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@I-Ruiz
Copy link

@I-Ruiz I-Ruiz commented Oct 14, 2025

I switched back and forth with multi_camera example changed to Radixsort using code below and switched between original and my commit radix.rs. It was almost 100% Improvement. //
commands.spawn((
Transform::from_translation(Vec3::new(spacing, spacing, 0.0)),
PlanarGaussian3dHandle(gaussian_assets.add(red_gaussians)),
CloudSettings {
aabb: true,
gaussian_mode: GaussianMode::Gaussian2d,
sort_mode: bevy_gaussian_splatting::sort::SortMode::Radix,
..default()
},
Name::new("gaussian_cloud_2dgs_sorted"),
));
//

I switched back and forth with multi_camera example changed to Radixsort using code below and switched between original and my commit radix.rs.  It was almost 100% Improvement. 
//
commands.spawn((
        Transform::from_translation(Vec3::new(spacing, spacing, 0.0)),
        PlanarGaussian3dHandle(gaussian_assets.add(red_gaussians)),
        CloudSettings {
            aabb: true,
            gaussian_mode: GaussianMode::Gaussian2d,
            sort_mode: bevy_gaussian_splatting::sort::SortMode::Radix,
            ..default()
        },
        Name::new("gaussian_cloud_2dgs_sorted"),
    ));
//
@mosure
Copy link
Owner

mosure commented Oct 16, 2025

to clarify, the 100% improvement is fps of multi_camera example?

@I-Ruiz
Copy link
Author

I-Ruiz commented Oct 16, 2025

I Instant: now()
—algorithm in command.spawn
Printed time it took to sort after command.spawn finished the sort

In performance of sorting I tested times, not in the FPS

It sorted almost 100% faster

@mosure
Copy link
Owner

mosure commented Oct 17, 2025

I think tests/gpu/radix.rs should not be correlated to examples/multi_camera.rs.

the improvement would likely come from switching between SortMode::Rayon and SortMode::Radix

SortMode::Rayon is the default on native:

return Self::Rayon;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants