PollEvents before main loop and little improvement in CCApplication.cpp/.mm.

...