Skip to content
Browse files

[droid] clear the depth buffer after rendering an addon.

This fixes slow GUI after vis/screensaver.

We don't use the depth buffer, but addons do. Prior to this change, we were
relying on them to clean up after themselves. They weren't, and it led to a
~25% gui slowdown after they'd started.

TODO: We should be pushing lots more settings to our state block. A poorly
written vis/ss could potentially mess with much of our state.
  • Loading branch information...
1 parent 41a71a8 commit f80175f1c5c4aabfdd4e8f5f4adc41be21a7dbb5 Cory Fields committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 xbmc/rendering/gles/RenderSystemGLES.cpp
1 xbmc/rendering/gles/RenderSystemGLES.cpp
@@ -373,6 +373,7 @@ void CRenderSystemGLES::ApplyStateBlock()
void CRenderSystemGLES::SetCameraPosition(const CPoint &camera, int screenWidth, int screenHeight)

0 comments on commit f80175f

Please sign in to comment.
Something went wrong with that request. Please try again.