变速齿轮原理

变速齿轮原理是,游戏在刷新画面时会用到时钟来控制刷新速度,有过游戏开发的人都知道,一般游戏锁定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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值