Skip to content

Add More Reminders to Free RID's #8447

@DevPoodle

Description

@DevPoodle

Your Godot version: 4.1

Issue description: Whenever a resource is created and identified with an RID, like when using RenderingServer or TextServer, it needs to be manually freed. While there's reminders to free them in the descriptions of functions that return RID's, there's a few more places I think should have reminders as well.

First, I think there should be a brief note at the end of the description of the RID class reference, reminding that the RID should be freed using whatever object created it. Second, in the compute shader tutorial, there's currently no information about freeing the shader's resources after it's completed running. I think there should at least be a note at the end about what resources need to be manually freed.

URL to the documentation page (if already existing):
RID Page: https://docs.godotengine.org/en/stable/classes/class_rid.html#class-rid
Compute Shader Tutorial: https://docs.godotengine.org/en/stable/tutorials/shaders/compute_shaders.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:class referenceIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryarea:manualIssues and PRs related to the Manual/Tutorials section of the documentationenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions