minor
1. remove sleep from game loop thread if no need
2. atlas optimization