mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	feat: add vaapi performance mode
This commit is contained in:
		
							parent
							
								
									78ec14be6d
								
							
						
					
					
						commit
						3a78532001
					
				
					 3 changed files with 4 additions and 1 deletions
				
			
		|  | @ -169,6 +169,7 @@ | |||
|                 <option value="none" data-string="settings-none" selected></option> | ||||
|                 <option value="performance" data-string="settings-prfmMode-performance"></option> | ||||
|                 <option value="battery" data-string="settings-prfmMode-battery"></option> | ||||
|                 <option value="vaapi" data-string="settings-prfmMode-vaapi"></option> | ||||
|             </select> | ||||
| 
 | ||||
|             <p class="header" data-string="settings-prfmMode"></p> | ||||
|  |  | |||
|  | @ -133,7 +133,8 @@ export async function injectElectronFlags(): Promise<void> { | |||
|     // SOFTWARE.
 | ||||
|     const presets = { | ||||
|         performance: `--enable-gpu-rasterization --enable-zero-copy --ignore-gpu-blocklist --enable-hardware-overlays=single-fullscreen,single-on-top,underlay --enable-features=EnableDrDc,CanvasOopRasterization,BackForwardCache:TimeToLiveInBackForwardCacheInSeconds/300/should_ignore_blocklists/true/enable_same_site/true,ThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes,UseSkiaRenderer,WebAssemblyLazyCompilation --disable-features=Vulkan --force_high_performance_gpu`, // Performance
 | ||||
|         battery: "--enable-features=TurnOffStreamingMediaCachingOnBattery --force_low_power_gpu" // Known to have better battery life for Chromium?
 | ||||
|         battery: "--enable-features=TurnOffStreamingMediaCachingOnBattery --force_low_power_gpu", // Known to have better battery life for Chromium?
 | ||||
|         vaapi: "--ignore-gpu-blocklist --enable-features=VaapiVideoDecoder --enable-gpu-rasterization --enable-zero-copy --force_high_performance_gpu --use-gl=desktop --disable-features=UseChromeOSDirectVideoDecoder" | ||||
|     }; | ||||
|     switch (await getConfig("performanceMode")) { | ||||
|         case "performance": | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue