The largest amount of memory allocations during the draw phase are unnecessary conversions from Coord2D to android.graphics.Point, simply updating the Cohen Sutherland algorithm to take Coord2D instead gets rid of these
When panning I now no longer get the same jank I was seeing each time the GC ran
Coord2D
toandroid.graphics.Point
, simply updating the Cohen Sutherland algorithm to takeCoord2D
instead gets rid of these