How set a FPS Limit
#1

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

#2

I remember Seen FPS limit on reza files.

#3

Hmmm ok¿

#4

This thread is still open btw #bump

#5

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

#6


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...

#7


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

#8


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?

#9


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 

#10


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



Forum Jump:


Users browsing this thread: 1 Guest(s)