I'm developing a game on my website, but I'm facing serious lag when rendering over 5000 objects. I'm looking for tips or strategies to improve performance and reduce this lag. The game can be found [here](http://buildnblocks.net), and the project files are available on [GitHub](https://github.com/th3nu8/buildnblocks/tree/main). Any advice would be greatly appreciated!
1 Answer
One idea is to only render what's currently in the user's view. It sounds like you might be doing that already, but if it's still lagging, you might need to fine-tune that process. When you limit rendering to just the visible faces, you could see better performance.
I already implemented that, but I'm struggling with the actual execution—it still lags when I try to render just the visible parts.