GC allocation: Is 24B every frame acceptable for mobile platforms?

Hi.

I’am generating road by calculating next point, assigning it to the List and deleting first one if List is too big.
I could recalculate point at the index of list and move start index to prevent creating new point, but this would break my clean code. My question is if 24B of gc allocation every frame is acceptable? If yes, what is the acceptable limit?

(I’am using List instead of Queue, because ironically it’s faster and easier to iterate)

Best regards, Atezai.

You don’t ever touch GC manually. Ever.
Forget it and toss the idea. It does its little optimized thing. You cant do better. Ever :slight_smile: