enhancements in game loop system
fixed viewport tests