********************* Update Nov 2018 *********************
*************************************************************************
Chrome 57 has been released recently. This version introduces background tab throttling to help improve performance. This is important to know about for workers because many important scripts you use can be affected by this.
Throttling of background tabs already existed, slowing them down to only be able to run once every second, but now they are going to be limited to an average of 1% CPU usage.
Affected scripts
- HIT Finder
- HIT Catcher
- Panda Crazy
- Overwatch
- HIT Scraper
- Turkmaster
- HIT Monitor
Affected browsers
(?) denotes unconfirmed, but they are based off of chromium so they should be when their bases get updated to Chromium 57+
- Chrome
- Chrome Canary
- Chromium
- Opera (?)
- Vivaldi (?)
How to opt-out
Windows:
- Right click the shortcut you use to launch chrome and select properties.
- Add --disable-background-timer-throttling to the end of the target line, there needs to be a space separating it as pictured below.
- You will have to exit out of Chrome completely for this to take affect and always use the edited shortcut to launch chrome or the flag will not run.
Mac:
Enter this into the terminal
You will have to do this everytime you launch Chrome or you can follow these instructions: https://turkerhub.com/posts/106128/Code:/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-background-timer-throttling
Both:
You can verify that the flag is enabled by going to chrome://version and seeing --disable-background-timer-throttling under "Command Line".
How to know if a tab can to be throttled
Any background tab that is not playing audio or does not have a WebSocket/WebRTC will be throttled unless you opt-out.
HIT Finder would not be throttled since it is in the foreground
HIT Finder would be throttled since it is in the background.
Having the scripts in their own window will prevent them from being throttled as long as they aren't minimized. You can have other windows covering them, just do not minimize them to the system tray.
-
It seems like the way to do this on Mac is by pasting
Code:/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-background-timer-throttling
I think. It at least didn't break anything when I did it. So. Um. Yeah.
I also don't know if you have to do this every time you launch Chrome. So. Um. Yeah.
:oops: Hopefully someone smarter than I will figure it out. @RicanGuy86?
Edit:
Or is this also it?
chrome://flags/#expensive-background-timer-throttling
-
Today I Learned x 3 -
Love x 1
Last edited: Mar 15, 2017 -
-
-
Like x 1 -
Today I Learned x 1
-
-
Verified by using the Chrome command chrome://verison.
No flag:
Flag enabled:
The only thing is, Mac users will have to open Chrome using Terminal and specify the flag every single time they'd like to opt-out.-
Today I Learned x 2
-
-
This is how:
1. Navigate to Script Editor (Utilities > Script Editor)
2. Copy this bit into Script Editor:
Code:tell application "Terminal" do script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --disable-background-timer-throttling" end tell
This creates an app that a Mac user can double-click and open Chrome with the flag enabled.-
Today I Learned x 4 -
Love x 2
Last edited: Mar 16, 2017 -
-
-
UPDATE:
You can now go to chrome://flags/
search for Throttling
At Throttle expensive background timers
click "Disable"
restart Chrome for it to work.-
Like x 2 -
Love x 2 -
Today I Learned x 1
-
-
-
by Martin Brinkmann on March 15, 2017 in Google Chrome - 11 comments
Google Chrome 57 is the first stable version of the web browser for the desktop that ships with the background tab throttling power optimization feature.
Google announced back in January 2017 that its Chrome web browser would start to throttle expensive background pages in the near future.
This change is now live in Chrome Stable. According to the new blog post on the official Chromium Blog, Chrome "will throttle individual background tabs by limiting the timer fire rate for background tabs using excessive power".
While timers of background tabs in Chrome were limited to run once per second already, the change throttles access to the CPU so that background tabs may use on average 1% of a core when they run in the background.
Google notes that tabs that run real-time applications such as audio playing in the background or WebRTC / WebSockets are not affected by the change.
The change leads to 25% "fewer busy background tabs" according to Google, but benchmarks for how that translates to power improvement has not been published by the company.
Users may opt out of the extra tab throttling right now by loading Chrome with the --disable-background-timer-throttling flag.
This is done in the following way on Windows machines:
- Right-click on the Chrome icon in the taskbar.
- Right-click on Chrome in the menu that opens, and select properties from it.
- Add --disable-background-timer-throttling to the end of the target field. Make sure there is a space between the path and the flag, e.g. "C:\Users\Martin\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --disable-background-timer-throttling
The company has long term plans for the feature (and we mean long term as the last entry of the roadmap is set to 2020+):
- Explicit opt-outs (~Q2 2017, when FeaturePolicy ships)
- Suspend all tasks on mobile (~Q2 2017)
- Throttling non-timer tasks (~Q2 2017)
- Budget-based throttling for offscreen frames (~Q3 2017)
- Throttling web workers (~2018)
- Suspend all background tabs (~2018)
- Remove opt-outs (~2020+)