轉自PTT 作者 jwjw0513
原址:http://bbs.ngacn.com/read.php?tid=1383506
歐服官論討論:打開微軟媒體播放器是否可以加速WoW性能
有玩家稱先打開微軟媒體播放器[windows media player,WMP]然後登錄WoW可顯著增加魔
獸世界性能,包括數據載入速度和每秒幀數。有玩家指不需打開WMP只需打開DirectX開發包[DirectX SDK]中的\Samples\C++\Direct3D\Bin\x86 or x64\EmptyProject.exe即可達到同樣效果。
實踐出真知
[
http://forums.wow-europe.com/thread.htm...19&sid=1&pageNo=1 ]
剛剛看了NGA的十頁討論,提到有強者測出下面這個東西
The origin of this "performance boost" is quite simple. Almost all of the
applications are using system timers in some of the ways. This is a natural
way of telling the system "Hey! I wanna draw this thing in 5 milliseconds.
Now I'm going to sleep, wake me up in 5ms!". Windows has a thing called
multimedia timers. These are the only timers with a high precision and
predictability (up to 1ms resolution). By default these timers run with a
precision like 10ms. So if the application want to wait for something using a
Player is using documented Windows functions (timeBeginRange, timeEndRange)
which allow the system to boost the timers precision up to 1ms. You may ask
why Microsoft didn't set this by default for you, well... Increasing timers
resolution will cause your CPU to handle more interrupts and it will cause
greatly increased power consumption (especially in sleep modes). Usually most
of the applications don't really need such precision. So it is recommended
for the software developers to only use this function when they're have a lot
of heavy multimedia processing in their code.
[
http://forums.wow-europe.com/thread.html...9&sid=1&pageNo=11]
第十一頁,終於有個似乎說的過去的解釋了,大體上是說,在系統中有一個計時器相關的設置,默認情況下會設置的比較長時間,大多數的程序不會去調整這個設置,在wmp中為了保證視頻播放流暢,會調整這個選項(而這個調整恰好對wow有幫助?)
在同一頁,有人提出類似的事情發生在HLDS(CS服務器端)上,有牛人甚至寫了一個11行
C程序直接去設置這個參數,請看:
[
http://planethalflife.gamespy.com/View.php?vi...id=4&game=3#advanced]
Advanced Tips and Tricks:
FPSbooster or WMP: Here is a trick to boost the FPS of your server. Higher FPS will make the game run smoother. The higher the better, as long as youkeep it below 800 (when you go above 800, you will most likely find a lot ofunexplainable server issues. It is the high FPS, Im tellin you!). The secret to this trick is to simply open Windows Media Player (and keep it open) while your server runs. It will boost the fps to the max value set by fps_max. WMP uses a relatively high amount of resources though, which is why I prefer the srcdsfpsboost.exe program. It is only 37kb and does the job perfectly! Grab the file here.