Proactively do BeginFrame when pending tree is activated and no input events is present
Merge pull request #55 from JunJiang/performance

Proactively do BeginFrame when pending tree is activated and no input events are consumed