YouTube CPU-Tamer Upgrade

Optimize CPU and GPU usage while watching YouTube videos

ผู้เขียน
Anh Khoa Phan
จำนวนติดตั้งประจำวัน
1
จำนวนติดตั้งทั้งหมด
316
คะแนน
1 0 0
เวอร์ชัน
0.3
สร้างเมื่อ
16-05-2024
อัปเดตเมื่อ
16-05-2024
สัญญาอนุญาต
MIT
ปรับใช้กับ

Ideal for users who frequently encounter "YouTube CPU Tamer by AnimationFrame" and "YouTube CPU Tamer" by CY Fung and knoa, this userscript is designed to optimize CPU and GPU usage while watching YouTube videos.

This userscript intercepts and customizes the execution of the "setTimeout" and "setInterval" functions, which are commonly used for scheduling tasks in JavaScript. By synchronizing these tasks with the browser's "requestAnimationFrame" function, it ensures that tasks are executed more efficiently and in alignment with the screen's refresh rate.

Additionally, the script checks for GPU acceleration support to leverage hardware capabilities and further reduce the energy impact. It also manages task execution in background tabs, adjusting intervals to minimize CPU usage when the tab is not active.

In essence, this script helps maintain smoother video playback and reduces power consumption, making it ideal for users looking to enhance their YouTube viewing experience on resource-constrained devices.

Thank you!
Best regards, AstralRift