OnDrawFrame I am calling Matrix.setLookAtM, Matrix.multiplyMM, Matrix.translateM, Matrix.scaleM a lot because I need to render different objects in 2D. I have created two objects - circle (How to draw basic circle in OpenGL ES 2.0 Android - Stack Overflow) and line. I render many of them by changing their position, color and scale. There might be some more extra work in GLRenderer class to calculate correct position after receiving information from network. The problem is that shake effect appears as other objects moves a little bit upside and down when I’m trying to translate one object’s position by 1f each second and to lock view on it (trying to move).
Device must be running on 30 FPS.
DDMS information:
[ATTACH=CONFIG]1173[/ATTACH]
I have managed to capture the screenshots of the actual problem:
[ATTACH=CONFIG]1174[/ATTACH][ATTACH=CONFIG]1175[/ATTACH]
As you can see in this example only the light blue bubble with border moves with the grid. The problem is that that the orange bubble with border moves randomly up and down when I’m changing light blue bubble position. While idling nothing happens. The difference of the orange bubble position on Y axis is about 0.03f-0.05f when this happens. After this happens it moves back to it’s real position. So this happens only for a very short moment and about 5-10 times a second.
P.S. Multisampling anti-lasing is 4x, problem persists with depth size 16 and 24.