android - Delay in calling onDraw() -


i writing code requires update ui multiple times within second display animation .but after calling invalidate ondraw() method gets called after around 100ms , hence number of times screen repainted reduced 4 or 5 times second.

i want know causes time difference between invalidate() command , calling of ondraw method.

is there way can reduce delay animation can smooth?? in advance.

it big code i'll post simple format it:

public class customimageview extends imageview {      private boolean dodoubletap(motionevent e) {         <loop>         tunematrix(matrix);//here changing values matrix.(ie scaling , all)         invalidate();         system.out.println("customimageview.dodoubletap():invalidate");         </loop>     }      ondraw(){         system.out.println("customimageview.ondraw():start");         //my code changes     } } 

now timedifference between logs "customimageview.dodoubletap():invalidate" , "customimageview.ondraw():start" ~100ms. want reduce max of 30ms.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -