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
Post a Comment