Hi, so I’m making a drawing app and I have two snapshots.
board1. One for all drawings,
board2. Another for current stroke drawing.
I use circle and line to make vector-ish lines instead of pushing circles whenever move is detected.
I can’t just have 1. because I need alpha in my strokes. (Without snapshots, I can see individual alphas in my circles and lines. This causes the overlapped parts be darker like a transparent 3D snake lol)
So whenever user lifts finger, I do
board1.group:insert(board2)
Then When user puts finger down again, I do
board1 = display.newSnapshot(screenW,screenH)
But unfortunately, when board2 is inserted into board1, snapshot object doesn’t melt into board1 and I get a memory leak.
Is there any way I could fix this problem?