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:
parent
464b453748
commit
a33589b3e9
3 changed files with 80 additions and 24 deletions
|
@ -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?
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue