rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Do not re-draw grid on every tick #246

Closed scotttrinh closed 2 years ago

scotttrinh commented 3 years ago

Summary

Went through the tutorial and was doing some refactoring and couldn't figure out why we would need to re-draw the grid on every tick. Removing seemed to have no noticeable effect.