Roblox Scripting: The AMAZING Incremental Collector!

Sdílet
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

Komentáře • 23

  • @matrixgeg
    @matrixgeg Před 5 dny +3

    what is wrong with your headphones😂

  • @halohasawaken6793
    @halohasawaken6793 Před 5 dny +5

    GYAAAAAT COLLECTOR

  • @JarOfPrickles
    @JarOfPrickles Před 5 dny +1

    your knowledge in roblox scripting is sooooo useful. incredibly underrated. Please keep doing what you do!

  • @BrawlDevRBLX
    @BrawlDevRBLX Před 5 dny +1

    Beautifully explained! :)

  • @madeadiputrasena7235
    @madeadiputrasena7235 Před 5 dny +1

    Extremely Underrated

  • @emibody
    @emibody Před 5 dny +3

    please visit brazil 🇧🇷 We love you

  • @user-qp7zb2kb2g
    @user-qp7zb2kb2g Před 3 dny

    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?

  • @dylan2-ud9yd
    @dylan2-ud9yd Před dnem

    Here before 1k subs

  • @misterguye
    @misterguye Před 5 dny +1

    very nice!

  • @huetwastaken
    @huetwastaken Před 5 dny +1

    Cool

  • @fourone1254
    @fourone1254 Před 4 dny +1

    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

    • @summerequinox
      @summerequinox  Před 4 dny

      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!

    • @fourone1254
      @fourone1254 Před 4 dny +1

      @@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

    • @summerequinox
      @summerequinox  Před 4 dny

      @@fourone1254 No worries at all :) and thank you!

  • @lukeewhy
    @lukeewhy Před 5 dny +1

    w improvements

  • @Wonsole
    @Wonsole Před 5 dny +1

    summer what is ur script editor color palette i need it🙏🙏