How can I reduce lag when rendering on my website?
Asked by
underpass 22
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!
Answers
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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
underpass 22: I already implemented that, but I'm struggling with the actual executionโit still lags when I try to render just the visible parts.