Skip to content

Conversation

@zaquest
Copy link
Member

@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
Member 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants