Garbage Collection - Automatic Memory Management - GameMaker 2

Опубликовано: 07 Ноябрь 2024
на канале: DragoniteSpam
1,383
57

What happens to structs or arrays in GameMaker once they're no longer referenced by anything? Nothing to worry about; the GameMaker garbage collector will take care of that for you!

I've wanted to make a video on this since 2.3 came out, but early on in the beta it was slightly broken and by the time it got patched up I'd kinda forgotten about it. Anyway, the companion video on weak references should be out soon.

GameMaker Studio 2.3 playlist:
   • GameMaker: New & Beta Features  
GameMaker 3D playlist:
   • 3D in Game Maker Studio 2  

0:00 Introduction
1:30 the GameMaker garbage collector
2:35 the garbage collector in action
6:53 Other garbage collector functions
11:29 Do we have destructors? (spoiler: no, but...)
13:13 Final thoughts

Thumbnail:
Trash by Xinh Studio from the Noun Project

#GameMaker
#GameMakerStructs
#GameMakerGarbageCollector
- - - -
I've now made that Patreon:
  / wizardragon  
That promised social media link spam.
  / dragonitespam  
Transition / idle music is by my old friend Kamex:
   / greatgabite  

Rate, comment, subscribe, watch more, enjoy!