Increase FPS

Increase FPS in shell shockers

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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