Change resolution

Change resolution
0.0 0



I want to change glview resolution to lower than actual screen resolution and then scale it up to fill the whole screen. This way I will have big retro pixels and high performance because of low glview resolution.
In iOS I’ve made it by changing frame size in
EAGLView *__glView = [EAGLView viewWithFrame: ...
and then I scaled it with
__glView.transform = CGAffineTransformScale(...

It works fine, as I wanted.

Now I would like to make something similar on Android.
So far I found that I can change resolution by changing
Cocos2dxRenderer.nativeInit(this.mScreenWidth, this.mScreenHeight);
in to, for example
Cocos2dxRenderer.nativeInit(160, 240);
But the view is small and I don’t know how to scale it up.
Also touch position is wrong when change the resolution.

Could you help me?

Thanks in advance :slight_smile: