Shellshock.io Performance Booster

Reduce lag and cap FPS in Shellshockers.io (No maximum cap depending on your pc)

  1. // ==UserScript==
  2. // @name Shellshock.io Performance Booster
  3. // @namespace https://shellshock.io/
  4. // @version 1.0
  5. // @description Reduce lag and cap FPS in Shellshockers.io (No maximum cap depending on your pc)
  6. // @author You
  7. // @match *://shellshock.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. function optimizePerformance() {
  15. const config = {
  16. shadows: false, // Disable shadows
  17. particles: false, // Remove extra particles
  18. postProcessing: false, // Turn off post-processing effects
  19. fpsCap: 144 // Set FPS cap (Adjustable)
  20. };
  21.  
  22. const optimize = () => {
  23. try {
  24. let settings = window.localStorage.getItem('settings');
  25. if (settings) {
  26. settings = JSON.parse(settings);
  27. settings.shadows = config.shadows;
  28. settings.particles = config.particles;
  29. settings.postProcessing = config.postProcessing;
  30. settings.fps = config.fpsCap;
  31. window.localStorage.setItem('settings', JSON.stringify(settings));
  32. console.log("Performance settings applied!");
  33. }
  34. } catch (e) {
  35. console.error("Failed to apply settings:", e);
  36. }
  37. };
  38.  
  39. // Hook into the game rendering loop
  40. const modifyRendering = () => {
  41. requestAnimationFrame = (callback) => setTimeout(callback, 1000 / config.fpsCap);
  42. console.log("FPS adjusted to:", config.fpsCap);
  43. };
  44.  
  45. optimize();
  46. modifyRendering();
  47. }
  48.  
  49. // Run optimization when the game starts
  50. window.addEventListener('load', optimizePerformance);
  51. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址