performance - Drawing lags in Android drawing application with canvas -


i building drawing application in android using canvas. i'm directly painting on canvas without using offline bitmap/canvas. works fine on 512m memory device on slower devices, application lags after few strokes. application allows user put cliparts, background , flood fill, too.

for different objects using arraylist bean class store each paint object, style , bitmap.

in ondraw(), each time iterating on arraylist , draw stored in arraylist. providing undo , redo cannot use drawingcache.

in short, need improve overall performance of application. how can achieve that? application structure proper or should change? can post code if needed.

thanks in advance.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -