3 ms·
It's fun, sure but no doubt canvas is the way to go for the same effect at less memory overhead.
by chrisco255 5y ago
It's fun, sure but no doubt canvas is the way to go for the same effect at less memory overhead.
- jonathanlydall 5y agoIndeed. Back in about 2010 or so when I made a Minecraft Redstone Simulator[1], I initially prototyped using a <table> for the display of the "grid". Just making the cells change colour as a mouse was clicked and dragged over the cells (to draw) was very laggy. After which I switched to canvas which worked really well. At the time I was a very inexperienced developer but looking back now it was very obvious a table with cell approach wouldn't be performant. [1]: https://mordritch.com/mc_rss/ https://mordritch.com/mc_rss/