Increase FPS

Increase FPS in shell shockers

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Increase FPS
// @license MIT
// @namespace    http://tampermonkey.net/
// @version      0.6
// @description  Increase FPS in shell shockers
// @author       HRLO77
// @match        *://shellshock.io/*
// @match        https://shellshock.io
// @match        https://shellshock.io/*
// @match        https://shellshock.io/
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
  var script = document.createElement('script');
  script.src = 'https://preview.babylonjs.com/babylon.js';
  document.head.appendChild(script);

  script.onload = function() {
    var scene = BABYLON.Engine.LastCreatedScene;
    var options = new BABYLON.SceneOptimizerOptions.HighDegradationAllowed(76);
    if (scene) {
      scene.getEngine().setMaxFPS(Infinity);
      optimizer = new BABYLON.SceneOptimizer(scene, options);
      optimizer.start();
      //scene.getEngine().useGeometryIdsMap = true;
      //scene.getEngine().useMaterialMeshMap = true;
      //scene.getEngine().useClonedMeshMap = true; // all these use require more mem
      scene.getEngine().performancePriority = 'aggressive';
      scene.getEngine().snapshotRendering = true;
    }
  };
})();