码迷,mamicode.com
首页 > 其他好文 > 详细

变速齿轮原理

时间:2017-03-12 11:01:06      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:one   window   计时器   control   free   sed   rom   code   oci   

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

变速齿轮原理

标签:one   window   计时器   control   free   sed   rom   code   oci   

原文地址:http://www.cnblogs.com/xuan52rock/p/6536928.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!