-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sort particles when loading? #67
Comments
@haugboel I think providing the option to sort via a different key in the We could also make a config option, so that the default sorting key could be set inside the user's config file? |
On second thought, if we provide a generic sort mechanism on the Datagroup, if you sort the 'amr' group according to say position_x, then the hydro group will be out of sync with the 'amr' group. Should we have a mechanism that links the amr and hydro groups, or should ensuring synchronization between groups be the user's responsibility? The linking sounds complicated and brittle... |
It is only particles I can think that we would sort. Apart from tags, id and distance to something (to get spherical shells easily) I can’t se other uses, but it would be easy to supply a key and then sorting accordingly.
Sendt fra min iPhone
… Den 16. feb. 2022 kl. 18.07 skrev Neil Vaytet ***@***.***>:
On second thought, if we provide a generic sort mechanism on the Datagroup, if you sort the 'amr' group according to say position_x, then the hydro group will be out of sync with the 'amr' group.
Should we have a mechanism that links the amr and hydro groups, or should ensuring synchronization between groups be the user's responsibility?
The linking sounds complicated and brittle...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Can we sort the particles when they are loaded?
Sort by type or id by default, but provide an option to choose a different key for sorting?
The text was updated successfully, but these errors were encountered: