Increase FPS

Increase FPS in shell shockers

  1. // ==UserScript==
  2. // @name Increase FPS
  3. // @license MIT
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.6
  6. // @description Increase FPS in shell shockers
  7. // @author HRLO77
  8. // @match *://shellshock.io/*
  9. // @match https://shellshock.io
  10. // @match https://shellshock.io/*
  11. // @match https://shellshock.io/
  12. // @run-at document-start
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. var script = document.createElement('script');
  19. script.src = 'https://preview.babylonjs.com/babylon.js';
  20. document.head.appendChild(script);
  21.  
  22. script.onload = function() {
  23. var scene = BABYLON.Engine.LastCreatedScene;
  24. var options = new BABYLON.SceneOptimizerOptions.HighDegradationAllowed(76);
  25. if (scene) {
  26. scene.getEngine().setMaxFPS(Infinity);
  27. optimizer = new BABYLON.SceneOptimizer(scene, options);
  28. optimizer.start();
  29. //scene.getEngine().useGeometryIdsMap = true;
  30. //scene.getEngine().useMaterialMeshMap = true;
  31. //scene.getEngine().useClonedMeshMap = true; // all these use require more mem
  32. scene.getEngine().performancePriority = 'aggressive';
  33. scene.getEngine().snapshotRendering = true;
  34. }
  35. };
  36. })();