您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Increase FPS in shell shockers
// ==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; } }; })();