How to limit the size of the render buffer?

How to limit the size of the render buffer?
0.0 0

#1

Hello!

I need to limit the size of the render buffer.
So far I have found only one method.

Example:

var view = cc.view.getCanvasSize();
var quality = 0.1;

cc.game.canvas.width = view.width * quality;
cc.game.canvas.height = view.height * quality;
cc.view.setFrameZoomFactor(quality);

But this doesn’t work for the Canvas rendering mode.
I think that there is some standard method, but I can’t find it.


#2

+1 for this
I’m also curious what method you should use to get this working properly in Canvas rendering mode.