Browse files

Merge pull request #5093 from popcornmix/double_buffer

[rbp] Reduce GPU memory use when limited
  • Loading branch information...
2 parents 97ad62b + 3fea829 commit 749411392ac84502c20579f357bbad95fe8ad8c5 @MartijnKaijser MartijnKaijser committed Aug 2, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 xbmc/linux/RBP.cpp
View
3 xbmc/linux/RBP.cpp
@@ -72,6 +72,9 @@ bool CRBP::Initialize()
if (vc_gencmd(response, sizeof response, "codec_enabled WVC1") == 0)
m_codec_wvc1_enabled = strcmp("WVC1=enabled", response) == 0;
+ if (m_gpu_mem < 128)
+ setenv("V3D_DOUBLE_BUFFER", "1", 1);
+
g_OMXImage.Initialize();
m_omx_image_init = true;
return true;

0 comments on commit 7494113

Please sign in to comment.