Skip to content

Commit

Permalink
Merge pull request #3644 from raven02/patch-15
Browse files Browse the repository at this point in the history
Apply GL_QCOM_binning_control if available
  • Loading branch information
hrydgard committed Sep 5, 2013
2 parents 20f6e4b + a59c058 commit 515874c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion GPU/GLES/GLES_GPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,26 @@ GLES_GPU::GLES_GPU()
} else {
glstate.SetVSyncInterval(g_Config.bVSync ? 1 : 0);
}


#ifdef ANDROID
if (gl_extensions.QCOM_binning_control)
/*
We can try different HINTS later or even with option to toggle for Adreno GPU
CPU_OPTIMIZED_QCOM
- binning algorithm focuses on lower CPU utilization (this path increases vertex processing
GPU_OPTIMIZED_QCOM
- binning algorithm focuses on lower GPU utilization (this path increases CPU usage
RENDER_DIRECT_TO_FRAMEBUFFER_QCOM
- render directly to the final framebuffer and bypass tile memory
(this path has a low CPU usage, but in some cases uses more memory bandwidth)
*/
glHint(GL_BINNING_CONTROL_HINT_QCOM, GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM);
#endif

shaderManager_ = new ShaderManager();
transformDraw_.SetShaderManager(shaderManager_);
transformDraw_.SetTextureCache(&textureCache_);
Expand Down

0 comments on commit 515874c

Please sign in to comment.