Skip to content

Commit

Permalink
timeout for thread to fix excessive CPU consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimBoev committed Dec 17, 2024
1 parent c2098b0 commit ceb2c30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified FlappyBird/app/build/outputs/apk/FlappyBird-signed.apk
Binary file not shown.
3 changes: 1 addition & 2 deletions FlappyBird/app/src/main/jni/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ void android_main(struct android_app* state)

g_Time = current_time;

// it has not been tested and remains questionable
// timeout for thread to fix excessive CPU consumption
//usleep(1000);
usleep(1000);
}
}
}

0 comments on commit ceb2c30

Please sign in to comment.