Skip to content

Instantly share code, notes, and snippets.

@szepi1991
Last active December 10, 2015 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szepi1991/4455258 to your computer and use it in GitHub Desktop.
Save szepi1991/4455258 to your computer and use it in GitHub Desktop.
Illustration of the reversed order of updates on the UpdateThread in AndEngine.
mEngine.runOnUpdateThread(new Runnable() {
@Override
public void run() { Debug.d("Message 1") }
});
mEngine.runOnUpdateThread(new Runnable() {
@Override
public void run() { Debug.d("Message 2") }
});
/* The output will be:
Message 2
Message 1
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment