max-mapper/voxel-engine

setBlock() does not update canvas until mouse click

haitaoli opened this issue · 1 comments

I see this problem in my app so I tested with the hello-world example, the same happens. If I call setBlock() after game is created, the new blocks do not show until I click on the canvas. Once I click on it, the subsequent calls update the canvas correctly. Tested in Chrome, FF and Edge. Is there a way to force rendering?

To answer my own question, set game.paused = false after the game object is configured.