◐ Shell
clean mode source ↗

slither.io is awfully slow

Minified testcase:

var fps = 0, lrd_mtm = Date.now();

function oef() {
    if (1E3 < Date.now() - lrd_mtm) {
        console.log("FPS: " + fps);
        fps = 0;
        lrd_mtm = Date.now()
    }
    redraw();
    window.requestAnimationFrame(oef)
};

function redraw() {
    fps++;
    var canvas = document.createElement("canvas");
    var canvas2 = document.createElement("canvas");
    canvas.width = 1000;
    canvas.height = 1000;
    var b = canvas2.getContext("2d");
    b.drawImage(canvas, 0, 0)
};

oef();

getting about 5 FPS on servo release build (with and without WebRender enabled, Mac OS X) and 60 FPS in Firefox/Safari/Chrome.
With small canvas (100x100, for example) I'm getting 60 FPS in servo.

I assume that this issue can be duplicate of #7638/#8311/#8281, but AFAIU they are about servo debug builds.