Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move sort to render world, use extracted views and update the existing buffer in... #119

Open
github-actions bot opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link

// TODO: move sort to render world, use extracted views and update the existing buffer instead of creating new

pub fn std_sort(
    asset_server: Res<AssetServer>,
    gaussian_clouds_res: Res<Assets<GaussianCloud>>,
    gaussian_clouds: Query<(
        &Handle<GaussianCloud>,
        &Handle<SortedEntries>,
        &GaussianCloudSettings,
    )>,
    mut sorted_entries_res: ResMut<Assets<SortedEntries>>,
    mut cameras: Query<
        &mut SortTrigger,
        With<GaussianCamera>,
    >,
    mut sort_config: ResMut<SortConfig>,
) {
    // TODO: move sort to render world, use extracted views and update the existing buffer instead of creating new

    let sort_start_time = Instant::now();
    let mut performed_sort = false;

    for mut trigger in cameras.iter_mut() {
        if !trigger.needs_sort {
            continue;
        }
        trigger.needs_sort = false;
        performed_sort = true;

        for (
            gaussian_cloud_handle,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant