Add More Reminders to Free RID's #8447
Labels
area:class reference
Issues and PRs about the class reference, which should be addressed on the Godot engine repository
area:manual
Issues and PRs related to the Manual/Tutorials section of the documentation
enhancement
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
The text was updated successfully, but these errors were encountered: