Click on a building button make the game lag/struggle

Issue #77 new
freeroot created an issue

When you reset the game, it's good to build many buildings. So, I click a lot of times per second to build severals buildings. But the game lag/struggle (I don't know the word in english). I tried to fix it and I saw that each click on a building button start game.render(). For testing, I make it in comment and the game succeed to be flowing freely.

I wanted to know if the game.render() si necessary here. I think not for the moment, and propose to delete it in buildingButton.onClick.

Thx for information

Comments (0)

  1. Log in to comment