How is Garbage Collection / Memory Fragmentation handled in godot-c#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Charles Woodhill


I hope you can help me with some questions with c# .net version (not mono)

  1. Does Godot (c++ side) handle Memory Fragmentation?
    Or should one still recycle objects as much as possible to avoid later problems?

  2. How is the C# Garbage Collector affecting Apps at runtime?
    Especially what happens when it “fires” and holds all threads.
    Do i have the same problems with little unpredicted freezes like pure C# apps have?

  3. Are Fragmentation/Garbage Collection still an issue when using GDScript?

:bust_in_silhouette: Reply From: Moreus

I tried C# pooling and don’t feel any different. You should not worry too much.