Changing the rendering resolution while maintaining the design layout
- by Coyote
I would like to increase the FPS of my project.
Currently I would like to try reducing the resolution at which the scenes are rendered.
Let's say I never want to draw more than 1280*720. What ever the real resolution is. How should I proceed?
I tried pEGLView->setFrameSize(1280, 720); but only reduces the displayed size of the frame on screen (boxing).
In my activity I tried setting the size of the "surface" but this seems to completely break the layout (as defined by setDesignResolutionSize).
@Override
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView surfaceView = new Cocos2dxGLSurfaceView(this);
surfaceView.getHolder().setFixedSize(1280, 720);
return surfaceView;
}
Is there a way to simply change the rendered