Preparing for surface management in User Library, modifying double buffering to fit.