Fix alloc surface mem, less RAM use