c++ - What is the best way for creating a fullscreen app in Android NDK which renders in half resolution? -


when initializing egl\gles context, use fullscreen. application rendered in half resolution , blitted screen using simple draw.

however, performance reasons, possible initialize context in arbritary resolution (for example half full resolution) , have driver\hardware handle blit fullscreen?

you can use android hardware scaler this.

the way use depends if initialize egl java or native c++ code:

// java surfaceview.getholder().setfixedsize(1280, 720);  // native int32_t ret = anativewindow_setbuffersgeometry(window, 1280, 720, 0); 

using hardware scaler gives better rescaling quality, better performance , less energy usage using render target.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -