r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

11

u/sfmqur Oct 07 '26 edited Oct 07 '26

Godot's GDScript isn't a garbage collected language, it is reference counted/manually managed. Once an object(Node, Object) is no longer referenced you have to free it. Some objects are refrence counted (Respurces mostly). And when the reference count gets to zero. The engine frees the memory.

Edit: clarity.

2

u/TheMusicalArtist12 Oct 07 '26

Objects are manually controlled, but most things inherit RefCounted, which uses a reference counter. Meaning that usually you don't need to manually free things, you just gotta stop holding onto it