markroland / sand-table-pattern-maker

A tool for creating G-code commands to draw patterns
36 stars 9 forks source link

Refactor to not draw continuously #1

Closed markroland closed 4 years ago

markroland commented 5 years ago

Currently the sketch loops through the draw() function. This means the sketch is looping even when the pattern is static. This leads to a lot of unnecessary computer resources being used.

I think this can be refactored so that the pattern is drawn through the draw() function once, and then when the pattern menu or pattern input is changed trigger a redraw().

markroland commented 4 years ago

In progress on https://github.com/markroland/sand-table-pattern-maker/tree/feature/performance-optimization

markroland commented 4 years ago

Added as an environment setting in Commit 356111d3