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

Render non-lerp particles first. Fixes #728. #730

Merged
merged 3 commits into from
Sep 21, 2017
Merged

Render non-lerp particles first. Fixes #728. #730

merged 3 commits into from
Sep 21, 2017

Conversation

zaquest
Copy link
Contributor

@zaquest zaquest commented Sep 20, 2017

No description provided.

@graphitemaster
Copy link
Member

Why not keep two arrays of particles (one lerp, one non lerp) generate them in that order, avoiding the need to sort at all, and even if you didn't want to go that far, keep two sorted lists of each and avoid running through the particles twice, this seems like an inefficent fix otherwise.

@graphitemaster
Copy link
Member

yeah quite literally, just have two parts arrays ...

@zaquest
Copy link
Contributor Author

zaquest commented Sep 20, 2017

Sort is executed once during a game run, so this shouldn't be a performance issue. Having 2 arrays means 2 loops in renderparticles.

@qreeves qreeves merged commit 9a8be94 into redeclipse:master Sep 21, 2017
@zaquest zaquest deleted the partsorder branch September 21, 2017 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants