Increase FPS

Increase FPS in shell shockers

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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;
    }
  };
})();