Search the Community
Showing results for tags 'scaleperformance'.
Found 1 result
Hi to all. I have one question: When user change brouser screen size, is there a way to scale all screen(scene) ? for example I use next approach var renderer = new PIXI.CanvasRenderer(400, 300, document.getElementById("maincanvas"));renderer.view.style.width = '800px';renderer.view.style.height = '600px';and when screen change it resolution, just update renderer.view.style.width and renderer.view.style.height with new values (of course I calculate aspect ratio) This work fine BUT perforce is bad if I twice screen resolution(as in example above) firefox(or chrome, or opera) will use 75-80% of my cpu. What I do wrong?