Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __stdcall limitFps(){
- DWORD curTick = GetTickCount();
- if(curTick - lastTick < 1000/maxFPS){
- Sleep(1000/maxFPS - (curTick - lastTick));
- }
- lastTick = curTick;
- }
- void _declspec(naked) EngineHook(){
- limitFps();
- _asm RET
- }
Add Comment
Please, Sign In to add comment