commit | 296fe63c4f6f1f28e0e50b51f6aa8d92e1919991 | [log] [tgz] |
---|---|---|
author | Jack Palevich <jackpal@google.com> | Thu Dec 16 19:06:00 2010 -0800 |
committer | Jack Palevich <jackpal@google.com> | Thu Dec 16 19:06:00 2010 -0800 |
tree | 254e2a7a3bf3b517d0987cd5256469040ac50716 | |
parent | d6e5c0c7191348931592653048274a1091af1e5f [diff] |
Avoid visual corruption if the game runs too fast. If we run too fast while not in timedemo mode the game will return immediately rather than rendering a frame. If we go ahead and return to GLSurfaceView, it will swap the GL buffer without having drawn anything into it, which will lead to garbage being displayed. The work-around is to detect that the game has decided to not render anything, sleep for a ms and then try again. Change-Id: Iba9d759547ddbc30534db963f5c47011038cc246