Optimize away bits in the stencil upload.

Should be faster than sending to the GPU this way, if we can help it.
Should improve delays on FBO creation at high render resolutions.
This commit is contained in:
Unknown W. Brackets 2014-06-28 01:39:18 -07:00
parent 464b453748
commit a33589b3e9
3 changed files with 80 additions and 24 deletions

View file

@ -1005,7 +1005,7 @@ void FramebufferManager::DoSetRenderFrameBuffer() {
ClearBuffer();
if (useBufferedRendering_ && !updateVRAM_) {
gpu->PerformMemoryUpload(fb_address_mem, byteSize);
gpu->PerformStencilUpload(fb_address_mem, byteSize);
NotifyStencilUpload(fb_address_mem, byteSize, true);
// TODO: Is it worth trying to upload the depth buffer?
}