kaunta / falling-sand

falling sand game.
MIT License
1 stars 0 forks source link

Improve performance when there are a large number of particles #24

Open kaunta opened 4 years ago

kaunta commented 4 years ago

When I have a lot of sand, and then try to draw a wall, gaps appear:

image

kaunta commented 4 years ago

Should I have the event listeners do less and move the line drawing into the game.tick function?

kaunta commented 4 years ago

I did some work on this and I think it's too complicated to do this for Version 4. My findings: