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

refactor: split out chunk work as a seperate helper class #4972

Conversation

pollend
Copy link
Member

@pollend pollend commented Dec 6, 2021

so I have a separate object just for managing the chunk meshiness and I moved a lot of stuff out so we don't couple the implementation directly to the context. constructor is looking a lot worse but I rather do that then use the context in its current form.

RenderableWorldImpl at the moment is gluing a lot of systems together not sure how this could be better organized. The way that LOD's are processed in a separate system introduces a lot of complications with control flow.

this is just a continuation of these changes: #4786

@github-actions github-actions bot added the Type: Refactoring Request for or implementation of pure and automatic refactorings, e.g. renaming, to improve clarity label Dec 6, 2021
@pollend pollend requested a review from keturn December 7, 2021 16:34
@keturn keturn self-assigned this Jan 18, 2022
…efactor/split-chunk-processing-seperate-class

engine/src/main/java/org/terasology/engine/rendering/world/RenderableWorldImpl.java
Copy link
Member

@keturn keturn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I see, splitting some things up and this:

I moved a lot of stuff out so we don't couple the implementation directly to the context. constructor is looking a lot worse but I rather do that then use the context in its current form.

No argument here. Agree that's a messy constructor, but maybe being explicit with those parameters will help us identify what needs to go where.

@keturn keturn merged commit 8e227a1 into refactor/migrate-chunk-mesh-generation-flowable Jan 19, 2022
@keturn keturn deleted the refactor/split-chunk-processing-seperate-class branch January 19, 2022 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactoring Request for or implementation of pure and automatic refactorings, e.g. renaming, to improve clarity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants