Cryzen.io Lightweight Performance Boost

Simplified Cryzen.io performance boost script for low-end systems.

  1. // ==UserScript==
  2. // @name Cryzen.io Lightweight Performance Boost
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.0
  5. // @description Simplified Cryzen.io performance boost script for low-end systems.
  6. // @match https://cryzen.io/*
  7. // @grant none
  8. // @run-at document-idle
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. console.log("Cryzen.io Lightweight Performance Boost Loaded.");
  16.  
  17. function limitFrameRate(fps = 30) {
  18. const originalRequestAnimationFrame = window.requestAnimationFrame;
  19. let lastCall = 0;
  20.  
  21. window.requestAnimationFrame = function(callback) {
  22. const now = performance.now();
  23. if (now - lastCall >= 1000 / fps) {
  24. lastCall = now;
  25. originalRequestAnimationFrame(callback);
  26. } else {
  27. originalRequestAnimationFrame(callback);
  28. }
  29. };
  30. }
  31.  
  32. function applyGraphicsOptimizations() {
  33. try {
  34. const graphicsConfig = {
  35. shadows: false,
  36. textures: "low",
  37. effects: "minimal"
  38. };
  39.  
  40. const materialSettings = {
  41. wireframe: false, // Evita o modo wireframe
  42. opacity: 1
  43. };
  44.  
  45. console.log("Graphics optimizations applied:", graphicsConfig, materialSettings);
  46. } catch (e) {
  47. console.warn("Graphics optimization error:", e);
  48. }
  49. }
  50.  
  51. function startOptimizations() {
  52. limitFrameRate(30);
  53. applyGraphicsOptimizations();
  54. }
  55.  
  56. const intervalId = setInterval(() => {
  57. const gameLoaded = document.querySelector('canvas');
  58. if (gameLoaded) {
  59. clearInterval(intervalId);
  60. startOptimizations();
  61. console.log("Optimizations applied successfully.");
  62. }
  63. }, 1000);
  64. })();