Comment Comment by mellow2020 https://jsfiddle.net/vas71r68/3/Don't do stuff like pushing rectangles to an array to have their position wrapped, instead of simply doing it right there, unless you want to test the GC. parent mellow2020 6 years ago
Don't do stuff like pushing rectangles to an array to have their position wrapped, instead of simply doing it right there, unless you want to test the GC.