How can I reduce lag when rendering on my website?

August 26, 2025 1 answer
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

not.my.final.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.

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.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions