// ==UserScript== // @name FPS forcer // @namespace Violentmonkey Scripts // @match https://starblast.io/ // @grant none // @version 1.0 // @license GPL-3.0 // @author - // @description 12/5/2024, 3:36:38 PM // @downloadURL https://update.greasyfork.icu/scripts/520177/FPS%20forcer.user.js // @updateURL https://update.greasyfork.icu/scripts/520177/FPS%20forcer.meta.js // ==/UserScript== (function() { // Ensure this script runs only once if (window.performanceOptimized) return; window.performanceOptimized = true; // 1. Disable unnecessary animations or throttling // Removed FPS forcer (requestAnimationFrame override) to avoid rendering issues // The game will use its own frame rate handling instead. // 2. Disable sound to reduce CPU/GPU load (optional) const audio = document.querySelectorAll('audio'); audio.forEach(a => a.muted = true); console.log("Audio muted to reduce CPU/GPU load."); // 3. Remove unnecessary DOM elements that may consume resources const removeUnnecessaryElements = () => { const elements = document.querySelectorAll('.unnecessary-class'); elements.forEach(element => element.remove()); }; setInterval(removeUnnecessaryElements, 1000); // Remove every second // 4. Prevent right-click context menu (optional) window.addEventListener('contextmenu', (e) => e.preventDefault()); // Log the success of optimizations console.log("Simplified performance optimizations applied."); })();