Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I think the problem was lack of pooling or prewarmed pools if you were using pooling
When you instantiate many gameobjects in a single line during runtime it often causes freezes and this issue is resolved by either using prewarmed pools or dividing the instantiation into several frames, thus avoiding writing too much to memory in one line.