I'm working on an endless game so i designed it so that the lights are created when the player is near and deleted when not. However I've noticed that when the player comes into contact with any light for the first time it stutters when creating the light. If they leave and come back, even though the light was deleted and needs to be created again it doesnt stutter.
Example, i have a section with 28 lights. Only 8 are actually existing at most at any time. If I create 4 of that section in a row, after going through the whole first section with stutters the next 3 don't stutter.
I don't know the cause of this or fix. I'm just ignoring it happens and putting it on the back burner for now.




