Render buffer refactor