Skip to content

Frame rendering rework and fixes#1995

Open
MrTJP wants to merge 4 commits into1.21.1from
feature/movement-rework
Open

Frame rendering rework and fixes#1995
MrTJP wants to merge 4 commits into1.21.1from
feature/movement-rework

Conversation

@MrTJP
Copy link
Copy Markdown
Owner

@MrTJP MrTJP commented Apr 15, 2026

  • Add specific render hooks for Embeddium and Sodium.
  • Remove usage of ICCBlockRenderer in Frame and Motor models (Fixes [Bug] Issues With Stacked Frame Systems #1984)
  • Fix a potential client crash when blocks are moved due to a concurrent modification exception (particularly likely to occur with Sodium)

var quads = bakedQuads.get(mask);
if (quads == null) {
quads = generateQuads(mask);
bakedQuads.put(mask, quads);
Copy link
Copy Markdown
Collaborator

@covers1624 covers1624 Apr 16, 2026

Choose a reason for hiding this comment

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

You may be able to hit a CME here if 2 threads both generate a model at the same time.

You probably need the classic double sync latch.

This issue is probably present for your other model as well.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Yup, discovered this a few hours ago. A sync block around put fixes it. Or i can pre-bake the map at construction.

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.

[Bug] Issues With Stacked Frame Systems

2 participants