Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

good but is there a way to fix the lag spike every time terrain is hit or is that just my potato pc?

This is a simple example so it’s not optimized. You could run the calculation on a thread, while it would not lag, it could still look like nothing is happening for a while. The best technique is transform the one big polygon of the terrain into many small square in a grid, just like minecraft.