Roblox Scripting: The AMAZING Incremental Collector!
Vložit
- čas přidán 26. 06. 2024
- This video acts as a nearly complete introduction to garbage collection on Roblox for total beginners!
[NEW!] Community Discord Server ❤️❤️:
/ discord
SOCIAL MEDIA:
X [Twitter]: x.com/ImSummerEquinox
Roblox: www.roblox.com/users/44504376
KEEP LEARNING:
luau-lang.org/performance
devforum.roblox.com/t/a-begin...
=============================================================
=============================================================
#roblox #robloxdev #lua #luau #scripting #robloxstudio #tips
what is wrong with your headphones😂
Ahahahaha
GYAAAAAT COLLECTOR
your knowledge in roblox scripting is sooooo useful. incredibly underrated. Please keep doing what you do!
Thanks!
Beautifully explained! :)
Thank you!
Extremely Underrated
:D
please visit brazil 🇧🇷 We love you
This was an amazing video, I've been scripting for a year and never really got into these topics. Where would you suggest I start learning about deeper topics in lua like protos stacks etc?
Here before 1k subs
very nice!
Thank you!!
Cool
love these vids, would love to see if you have any tips of freeing memory manually / optimisation? guessing garbage collector is more efficient than a self implemented clean-up system
So garbage collection is automatic, and part of a typical interpreted scripting language. It is the reason you don't need to set all of your variables to nil after declaring them to free your own memory.
The only time you need to manually deallocate memory on Roblox is when you have declared an object (usedata) within the Instance hierarchy [Instance.new() etc...] as these objects are maintained by the Lua heap and ALSO the C/Luau exchange stack. For these objects you should always be calling :Destroy(), as the memory will persist in every other circumstance where their destructor method is not invoked.
GC isn't something you personally implement, it is part of every game on Roblox naturally and part of the variable lifecycle. When your variables go out of scope, a script ends, and other similar circumstances your memory is cleared by this system. This video is about learning how things work under the hood, and not necessarily a system you implement yourself.
Thanks for your comment!
@@summerequinox wow, that makes it so much clearer! thanks for giving me such a detailed response, really helps with understanding this type of stuff. off topic, but i really love your videos. hope your content catches on and you can grow in the near future
@@fourone1254 No worries at all :) and thank you!
w improvements
summer what is ur script editor color palette i need it🙏🙏
GitHub Dark Color Blind Beta!