slightly improved frame compression speed