Avoid clearing the backbuffer before actually doing any rendering to fbo on every frame - instead, clear when stretching the framebuffer into place. May save quite a bit of bandwidth on tiler GPUs with naive GL drivers.

This commit is contained in:
Henrik Rydgard committed 2015-11-18 12:13:35 +01:00
1 parent ae30933ed8
commit 758ec5a027
6 files changed
+55 -23

No files matched your search

-12
View File
@@ -694,18 +694,6 @@ void DrawDownloadsOverlay(UIContext &dc) {
void NativeRender() {
g_GameManager.Update();
thin3d->Clear(T3DClear::COLOR | T3DClear::DEPTH | T3DClear::STENCIL, 0xFF000000, 0.0f, 0);
T3DViewport viewport;
viewport.TopLeftX = 0;
viewport.TopLeftY = 0;
viewport.Width = pixel_xres;
viewport.Height = pixel_yres;
viewport.MaxDepth = 1.0;
viewport.MinDepth = 0.0;
thin3d->SetViewports(1, &viewport);
thin3d->SetTargetSize(pixel_xres, pixel_yres);
float xres = dp_xres;
float yres = dp_yres;