LCKB
How set a FPS Limit - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: How set a FPS Limit (/showthread.php?tid=5003)



- nicolasg - 01-04-2023


As the title says, could someone explain how to set an FPS Limit? either Predefined or adapted to Screen refresh frec?




- Stormax - 01-04-2023


I remember Seen FPS limit on reza files.




- nicolasg - 01-04-2023


Hmmm ok¿




- nicolasg - 01-30-2023


This thread is still open btw #bump




- WhosUrDaddi - 01-30-2023


Theres a "LimitFrameRate" function in Nksp.cpp you could go on from that




- nicolasg - 02-06-2023



On 1/30/2023 at 6:06 PM, WhosUrDaddi said:




Theres a "LimitFrameRate" function in Nksp.cpp you could go on from that




Hmm, could you be a bit more descriptive? if you don't mind...




- WhosUrDaddi - 02-06-2023



28 minutes ago, nicolasg said:




Hmm, could you be a bit more descriptive? if you don't mind...




Well its does what the name says the "(INDEX)sam_iMaxFPSActive" is the fps limit when the game is not minimized and "(INDEX)sam_iMaxFPSInactive" is the fps limit when the game is minimized you can change that as you want and call the function.

Then you can just do a setting and set the fps limit to the hz of the monitor and there you go




- nicolasg - 02-06-2023



1 hour ago, WhosUrDaddi said:




Well its does what the name says the "(INDEX)sam_iMaxFPSActive" is the fps limit when the game is not minimized and "(INDEX)sam_iMaxFPSInactive" is the fps limit when the game is minimized you can change that as you want and call the function.



Then you can just do a setting and set the fps limit to the hz of the monitor and there you go




But shouldn't it call the function in the render loop or something like that?




- WhosUrDaddi - 02-07-2023



9 hours ago, nicolasg said:




But shouldn't it call the function in the render loop or something like that?




You could just put it in the DoGame 




- nicolasg - 02-07-2023



1 hour ago, WhosUrDaddi said:




You could just put it in the DoGame 




Wow, I thought I had to tweak the dx configuration and maybe put a check in some render while. But apparently not, sorry for the ignorance