playMaker

Author Topic: garbage collection actions  (Read 4936 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
garbage collection actions
« on: February 25, 2016, 10: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, 11:38:33 AM by dudebxl »

3d_Artist1987

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

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: garbage collection actions
« Reply #2 on: February 26, 2016, 04: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

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: garbage collection actions
« Reply #3 on: March 20, 2018, 01:37:11 AM »
What's a maximum heap size I can set? =)

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: garbage collection actions
« Reply #4 on: March 20, 2018, 11:00:48 AM »
Damn man, these are like the best actions ever.
Available for Playmaker work