playMaker

Author Topic: garbage collection actions  (Read 2336 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
garbage collection actions
« on: February 25, 2016, 08:56:22 PM »
I noticed we have no GC actions. Make sure to check your profiler in Unity5 (or Unity4 pro) to see what effect it has on the game.

3 actions
  • GarbageCollection : When such a pause occurs, you can request a collection explicitly.
  • GarbageCollectionSmallHeap : Small heap with fast and frequent garbage collection for  games that have long periods of gameplay where a smooth framerate is the main concern
  • GarbageCollectionLargeHeap : For games where allocations (and therefore collections) are relatively infrequent and can be handled during pauses in gameplay.

Everything is from here and more info:
http://docs.unity3d.com/Manual/UnderstandingAutomaticMemoryManagement.html

On ecosystem or https://snipt.net/dudebxl/
« Last Edit: February 26, 2016, 09:38:33 AM by dudebxl »

3d_Artist1987

  • Beta Group
  • Full Member
  • *
  • Posts: 157
    • View Profile
Re: garbage collection actions
« Reply #1 on: February 26, 2016, 01:50:10 AM »
Cool action! Thanks

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: garbage collection actions
« Reply #2 on: February 26, 2016, 02:24:29 AM »
Thanks for the actions! I know nothing about GC but now I will learn thanks to these actions  :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Gua

  • Full Member
  • ***
  • Posts: 156
    • View Profile
    • Andrii Vintsevych
Re: garbage collection actions
« Reply #3 on: March 19, 2018, 10:37:11 PM »
What's a maximum heap size I can set? =)

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 988
    • View Profile
    • Fat Pug Studio
Re: garbage collection actions
« Reply #4 on: March 20, 2018, 08:00:48 AM »
Damn man, these are like the best actions ever.