canvas - Alternative to android.graphics.Path? -


i drawing path on canvas based on action move, user drags screen i’m triggering

path.lineto(x,y)

and in ondraw method of canvas i'm drawing using

canvas.drawpath(path, paint);

after 20 minutes of continuous playing this, app hangs, , cpu load spikes high , app crashes. in real life deployment of app there need of tracking two-three hours.

is there alternative path? or solution can reduce cpu load?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -