Made the garbage collector treat top level variables as roots, this prevents top level variables from getting freed
I added 2 modes to this
- Reflect: This uses a hacked block to read the variables by name and reduce script size if theres a lot of variables(this doesn’t render properly inside the editor but it works)
- NoReflect: Get all the top level variables at compile time and mark them one by one
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.