|
1 | 1 | use std::sync::atomic::{AtomicBool, AtomicU64};
|
2 | 2 |
|
3 | 3 | /// The performance arg count.
|
4 |
| -pub(crate) const PERF_ARGS: usize = 91; |
| 4 | +pub(crate) const PERF_ARGS: usize = 94; |
5 | 5 |
|
6 | 6 | lazy_static::lazy_static! {
|
7 | 7 | /// The chrome args to use test ( basic without anything used for testing ).
|
@@ -150,6 +150,9 @@ lazy_static::lazy_static! {
|
150 | 150 | gpu_enabled,
|
151 | 151 | gpu_enabled_sandboxed,
|
152 | 152 | "--enable-webgl",
|
| 153 | + "--enable-webgl2-compute-context", |
| 154 | + "--enable-webgl-draft-extensions", |
| 155 | + "--enable-unsafe-webgpu", |
153 | 156 | // use_gl,
|
154 | 157 | // "--use-angle=swiftshader",
|
155 | 158 | "--no-first-run",
|
@@ -186,7 +189,6 @@ lazy_static::lazy_static! {
|
186 | 189 | "--disable-background-timer-throttling",
|
187 | 190 | "--disable-breakpad",
|
188 | 191 | "--disable-crash-reporter",
|
189 |
| - "--disable-software-rasterizer", |
190 | 192 | "--disable-asynchronous-spellchecking",
|
191 | 193 | "--disable-html5-camera",
|
192 | 194 | "--noerrdialogs",
|
@@ -240,7 +242,12 @@ lazy_static::lazy_static! {
|
240 | 242 | "--disable-ipc-flooding-protection", // we do not need to throttle navigation for https://github.com/spider-rs/spider/commit/9ff5bbd7a2656b8edb84b62843b72ae9d09af079#diff-75ce697faf0d37c3dff4a3a19e7524798b3cb5487f8f54beb5d04c4d48e34234R446.
|
241 | 243 | // --deterministic-mode 10-20% drop in perf
|
242 | 244 | // "--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4",
|
243 |
| - "--disable-features=PaintHolding,HttpsUpgrades,DeferRendererTasksAfterInput,LensOverlay,ThirdPartyStoragePartitioning,IsolateSandboxedIframes,ProcessPerSiteUpToMainFrameThreshold,site-per-process,WebUIJSErrorReportingExtended,DIPS,InterestFeedContentSuggestions,PrivacySandboxSettings4,AutofillServerCommunication,CalculateNativeWinOcclusion,OptimizationHints,AudioServiceOutOfProcess,IsolateOrigins,ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate" |
| 245 | + "--disable-features=PaintHolding,HttpsUpgrades,DeferRendererTasksAfterInput,LensOverlay,ThirdPartyStoragePartitioning,IsolateSandboxedIframes,ProcessPerSiteUpToMainFrameThreshold,site-per-process,WebUIJSErrorReportingExtended,DIPS,InterestFeedContentSuggestions,PrivacySandboxSettings4,AutofillServerCommunication,CalculateNativeWinOcclusion,OptimizationHints,AudioServiceOutOfProcess,IsolateOrigins,ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate", |
| 246 | + if !gpu { |
| 247 | + "--enable-unsafe-swiftshader" |
| 248 | + } else { |
| 249 | + "" |
| 250 | + } |
244 | 251 | ]
|
245 | 252 | };
|
246 | 253 |
|
|
0 commit comments