Add Grid Rendering #7
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a rendered grid to the simulation, which can be turned on or off.
Perhaps find a way in which it does not need to be re-rendered every frame/update.
One way would fundamentally change the rendering logic.
By not updating the whole canvas every frame (through adding a bg colored box) and instead only re-rendering the little squares that need it, we could save a lot of re-rendering work.
An idea would be to keep a list of all squares changed in the last update and re-render them and their neighbors by adding boxes of the background color or cell color respectively. All other boxes are not affected, the overall grid does not need to be redrawn.
closed