bg and fullscreen optimizations