avoid drawing layers unless necessary
fixed frame reporting
added a move test
Merge branch 'performance'