首页 > 代码库 > 变速齿轮原理
变速齿轮原理
变速齿轮原理是,游戏在刷新画面时会用到时钟来控制刷新速度,有过游戏开发的人都知道,一般游戏锁定1秒30帧,这样会很流畅,人眼有视觉停顿,当速度达到1秒16帧的时候,就是在跑动画了,游戏用到的计时器有大部分是两个windows提供的api函数,一个是::GetTickCount,一个是::timeGetTime,这两个api的原型请查msdn,我们利用hook api 去修改它的值,从而改变游戏速度,工程是一个d-Change gear principle is that the game will refresh the screen refresh rate is used to control the clock, had a game developer knows that, generally 1 second 30 game lock, it will be very smooth, human eyes have visual pause, When the velocity reaches 1 second 16 time is running animation, and game timer are used to provide most of the api function of two windows, one is:: GetTickCount, one is:: timeGetTime, these two api prototype please check msdn, we use the hook api to modify its value, thus changing the game speed, works as a dll!
from:http://www.pudn.com/downloads264/sourcecode/windows/freedic/detail1212495.html
变速齿轮原理