mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-05 06:15:12 +00:00
draw then decode to help minimize visual delay
This commit is contained in:
parent
bcbece17f6
commit
9446d5976e
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,6 @@ public class ImageView extends SurfaceView implements SurfaceHolder.Callback {
|
|||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
}
|
||||
decode();
|
||||
Canvas canvas = null;
|
||||
try {
|
||||
canvas = holder.lockCanvas(null);
|
||||
|
|
@ -87,6 +86,7 @@ public class ImageView extends SurfaceView implements SurfaceHolder.Callback {
|
|||
if (canvas != null)
|
||||
holder.unlockCanvasAndPost(canvas);
|
||||
}
|
||||
decode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue