Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 硬體加速開啟/關閉:.bat 一鍵切換 DirectDraw 加速

編輯:Win7 系統應用技巧

播放高畫質影片時啟用硬體加速可減輕 CPU 負擔,但會加速顯卡老化。提供兩支批次檔,一鍵切換 DirectDraw 硬體加速狀態。

關閉硬體加速(啟用 DirectDraw 繞過模式)

建立 Disable_HWA.bat,內容:

@echo off
title 開啟DirectDraw
mode con:cols=50 lines=12
color ff
echo 正在開啟DirectDraw加速...
reg add "HKLM\SOFTWARE\Microsoft\Direct3D\Drivers" /v SoftwareOnly /t REG_DWORD /d 0 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\DirectDraw" /v EmulationOnly /t REG_DWORD /d 0 /f >nul 2>&1
gpupdate /force >nul 2>&1

開啟硬體加速(停用 DirectDraw 繞過模式)

建立 Enable_HWA.bat,內容:

@echo off
title 關閉DirectDraw
mode con:cols=50 lines=12
color ff
echo 正在關閉DirectDraw加速...
reg add "HKLM\SOFTWARE\Microsoft\Direct3D\Drivers" /v SoftwareOnly /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\DirectDraw" /v EmulationOnly /t REG_DWORD /d 1 /f >nul 2>&1
gpupdate /force >nul 2>&1

使用方式: 以系統管理員身分執行對應 .bat,完成後重新登入或重開機生效。

硬體加速示意圖

提醒: 非必要情況(如舊顯卡跑高畫質影片)建議保持關閉,延長硬體壽命。

Copyright © Windows教程網 All Rights Reserved