Skip to content

Do the decompression and the chunk creation in one Task#2973

Merged
IntegratedQuantum merged 2 commits intoPixelGuys:masterfrom
IntegratedQuantum:combination_optimization_attempt
Apr 26, 2026
Merged

Do the decompression and the chunk creation in one Task#2973
IntegratedQuantum merged 2 commits intoPixelGuys:masterfrom
IntegratedQuantum:combination_optimization_attempt

Conversation

@IntegratedQuantum
Copy link
Copy Markdown
Member

@IntegratedQuantum IntegratedQuantum commented Apr 23, 2026

progress towards #2972

No measurable performance improvement was found

Copy link
Copy Markdown
Contributor

@Wunka Wunka left a comment

Choose a reason for hiding this comment

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

The Github UI suggests me as a reviewer so here is my review.

Comment thread src/network/protocols.zig
.wy = try reader.readInt(i32),
.wz = try reader.readInt(i32),
.voxelSize = try reader.readInt(u31),
const task = main.globalAllocator.create(MeshGenerationTask);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const task = main.globalAllocator.create(MeshGenerationTask);
const task = main.globalAllocator.create(MeshGenerationTask);
errdefer main.globalAllocator.destroy(task);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good catch

@IntegratedQuantum IntegratedQuantum merged commit f751807 into PixelGuys:master Apr 26, 2026
1 check passed
@IntegratedQuantum IntegratedQuantum deleted the combination_optimization_attempt branch April 26, 2026 08:11
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.

2 participants