optimized broadcast of enter frame event
implemented limited OpenGL state caching
minor optimizations