Issues and Fixes
August 18, 2022

How to Fix Slow Playback in Chrome Version 102 and Later?

Google Chrome downloads and updates certain features or updates in the background. It is observed that from version 102 onward, there have been more frequent background updates. Google Chrome can initiate these background activities even with the Google Chrome instances launched by Sahi. Consequently,  your Sahi Playback will become slow on Google Chrome.


To fix this, follow the steps below:
Click on the Configure link from the Sahi Dashboard.

Click on the passthrough_ws_ssh_domains.txt link.

Append the following line and save.*optimizationguide[-]pa[.]googleapis[.]com*

Now click on the browser_types.xml link. Search for chrome <browserType> XML and replace it with following XML based on operating system:

For Windows 32-bit

<browserType>

<name>chrome</name>  

<displayName>Chrome</displayName>

<icon>chrome.png</icon>

<path>$LOCALAPPDATA\Google\Chrome\Application\chrome.exe</path>  

<options>--no-default-browser-check --user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>

<processName>chrome.exe</processName>

<capacity>5</capacity>  

</browserType>

For Windows 64-bit:

<browserType>

<name>chrome</name>  

<displayName>Chrome</displayName>

<icon>chrome.png</icon>

<path>$ProgramFiles\Google\Chrome\Application\chrome.exe</path>  

<options>--no-default-browser-check --user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>  

<processName>chrome.exe</processName>

<capacity>5</capacity>  

</browserType>

For Linux

<browserType>

<name>chrome</name>  

<displayName>Chrome</displayName>

<icon>chrome.png</icon>

<path>/usr/bin/google-chrome</path>  

<options>--no-default-browser-check --no-first-run --user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options> 

<processName>chrome</processName>

<capacity>5</capacity>  

</browserType>

For Mac:

<browserType>

<name>chrome</name>  

<displayName>Chrome</displayName>

<icon>chrome.png</icon>

<path>open -n -a "Google Chrome.app"</path>  

<options>--args --no-default-browser-check --no-first-run --user-data-dir=$userDir/browser/chrome/profiles/sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints</options>

<processName>"Google Chrome"</processName>

<capacity>5</capacity>

<force>true</force>  

</browserType>

Stop Sahi Pro.

Take a backup of <SahiPro>/userdata/browser/chrome folder. Delete this folder.

Restart Sahi Pro.

Continue reading