reduce memory usage to support higher resolution