Greasy Fork is available in English.

YouTube CPU-Tamer Upgrade

Optimize CPU and GPU usage while watching YouTube videos

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
Anh Khoa Phan
일일 설치수
0
총 설치수
127
평점
1 0 0
버전
0.3
생성
2024-05-16
갱신
2024-05-16
라이선스
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