Skip to content

Fix VRAM leak in MapChunk edge rendering#6441

Open
B-Kirill wants to merge 3 commits intospace-wizards:masterfrom
B-Kirill:Fix-VRAM-leak-in-MapChunk-edge-rendering
Open

Fix VRAM leak in MapChunk edge rendering#6441
B-Kirill wants to merge 3 commits intospace-wizards:masterfrom
B-Kirill:Fix-VRAM-leak-in-MapChunk-edge-rendering

Conversation

@B-Kirill
Copy link
Contributor

@B-Kirill B-Kirill commented Mar 9, 2026

When deleting a map chunk, the DeleteChunk method in Clyde.GridRendering.cs frees the main VAO/VBO/EBO but does not free EdgeVAO/ EdgeVBO/EdgeEBO which leads to a VRAM leak.
Just added the deletion of these objects.

Copy link
Contributor

@moonheart08 moonheart08 left a comment

Choose a reason for hiding this comment

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

Keep the GL error checks, so we actually know which operation errored out.

@B-Kirill
Copy link
Contributor Author

B-Kirill commented Mar 9, 2026

Keep the GL error checks, so we actually know which operation errored out.

Oh, I didn't think about it in that context. Then yes, it should stay.

@Tayrtahn Tayrtahn added T: Bugfix Type: Bugs and/or bugfixes A: Rendering Anything related to putting pixels on the screen labels Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: Rendering Anything related to putting pixels on the screen T: Bugfix Type: Bugs and/or bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants