Skip to content

Conversation

@dordsor21
Copy link
Member

@dordsor21 dordsor21 commented Jun 14, 2025

@dordsor21 dordsor21 requested a review from a team as a code owner June 14, 2025 16:33
@github-actions github-actions bot added the Bugfix This PR fixes a bug label Jun 14, 2025
@NotMyFault NotMyFault requested a review from a team June 15, 2025 16:29
Comment on lines +214 to +215
Queue<BlockVector3> lightPropagationQueue = new LinkedList<>();
Queue<LightRemovalNode> lightRemovalQueue = new LinkedList<>();
Copy link
Member

Choose a reason for hiding this comment

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

Why LinkedList?

Copy link
Member Author

Choose a reason for hiding this comment

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

We're only ever accessing the front of the queue and we are adding frequently and only to the end. Using array for what is likely to be resized at least once, possibly twice felt less performant

@dordsor21 dordsor21 merged commit 3dc41d8 into main Jun 26, 2025
11 checks passed
@dordsor21 dordsor21 deleted the fix/nmsrelighter branch June 26, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix This PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NMS relighter outdated lacking support for newer versions

4 participants