Skip to content

Frame rendering rework and fixes#1995

Merged
MrTJP merged 7 commits into
1.21.1from
feature/movement-rework
Jul 15, 2026
Merged

Frame rendering rework and fixes#1995
MrTJP merged 7 commits into
1.21.1from
feature/movement-rework

Conversation

@MrTJP

@MrTJP MrTJP commented Apr 15, 2026

Copy link
Copy Markdown
Owner

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

@covers1624 covers1624 Apr 16, 2026

Copy link
Copy Markdown
Collaborator

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.

@MrTJP MrTJP force-pushed the feature/movement-rework branch from f49171f to f582e8b Compare April 30, 2026 20:30
@MrTJP MrTJP force-pushed the feature/movement-rework branch from 134cf16 to 5f83535 Compare July 15, 2026 13:16
@MrTJP MrTJP merged commit daf36fb into 1.21.1 Jul 15, 2026
4 checks passed
@MrTJP MrTJP deleted the feature/movement-rework branch July 15, 2026 14:46
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 [Suggestion] Move the player when they're on top of moving blocks

2 participants