I'm capping my framerate using the game.lockFps command, but I have to do it every time I start the game. How can I automate this?
I've read doing pb_sleep 500 and pb_writecfg works, but I've tried that to no avail. (What would punkbuster have to do with that anyway?)
Does PR have something similar to autoexec?
-
saXoni
- Posts: 4180
- Joined: 2010-10-17 21:20
Re: Does PR have something similar to autoexec?
Why would you want to cap your framerate? Unfortunately I don't have an answer to your questions, I'm simply curious.
-
smgunsftw
- Posts: 242
- Joined: 2012-10-26 21:43
Re: Does PR have something similar to autoexec?
Maybe he wants to avoid fps drops, or at least reduce the severity of it. Or maybe he has a monitor with a really low refresh rate.saXoni wrote:Why would you want to cap your framerate? Unfortunately I don't have an answer to your questions, I'm simply curious.
-
Brisk187
- Posts: 103
- Joined: 2013-09-15 23:07
Re: Does PR have something similar to autoexec?
When you have vsync on, whenever your graphics card is NOT under load, you're going to get some amount of input lag no matter what. I get a noticeable amount, and it bothers me. I found out the solution is to keep your framerate just a little bit below your monitor's refresh rate. For me, that's 59 fps. Doing so does a surprisingly effective job at eliminating the input lag.saXoni wrote:Why would you want to cap your framerate? Unfortunately I don't have an answer to your questions, I'm simply curious.
For those of you with vsync on, I encourage you to try capping your framerate. See if you notice a difference in terms of input lag. And the reason to keep vsync on is to eliminate screen tearing.
Last edited by Brisk187 on 2014-04-06 20:34, edited 2 times in total.
-
epoch
- Retired PR Developer
- Posts: 4091
- Joined: 2007-04-07 14:16
Re: Does PR have something similar to autoexec?
You can put console commands in the general.con file. You'll find that in your Documents\ProjectReality\Profiles\whatever folder.Brisk187 wrote:I'm capping my framerate using the game.lockFps command, but I have to do it every time I start the game. How can I automate this?
I know you can put renderer.drawfps 1 into that file - I'm assuming you can add game.lockFPS to it also. It's been a while since I tweaked BF2.
[R-MOD]Cp: epoch if I wasn't dancing right now I'd shoot you.
-
Brisk187
- Posts: 103
- Joined: 2013-09-15 23:07
Re: Does PR have something similar to autoexec?
As of now, modifying the General.con file in my Profiles\0001 directory will cause PR to give me a verification error and won't let me start the game.'[R-DEV wrote:epoch;1996492']You can put console commands in the general.con file. You'll find that in your Documents\ProjectReality\Profiles\whatever folder.
I know you can put renderer.drawfps 1 into that file - I'm assuming you can add game.lockFPS to it also. It's been a while since I tweaked BF2.
In fact I just tried dropping renderer.drawfps 1 in that file, but the result is the same.
-
LITOralis.nMd
- Retired PR Developer
- Posts: 5658
- Joined: 2010-04-10 16:15
Re: Does PR have something similar to autoexec?
You can download a third party utility for your GPU,
Nvidia Inspector
RadeonPro
or the built in AMD CCC has game profiles, where you can add the PRBF2.exe file to the BF2.exe profile, then go to advanced options and cap framerates. (I forgot the exact steps, sorry)
Nvidia Inspector
RadeonPro
or the built in AMD CCC has game profiles, where you can add the PRBF2.exe file to the BF2.exe profile, then go to advanced options and cap framerates. (I forgot the exact steps, sorry)
-
epoch
- Retired PR Developer
- Posts: 4091
- Joined: 2007-04-07 14:16
Re: Does PR have something similar to autoexec?
Ah ok. I know you can modify general.con in the BF2 profile folder, when playing vanilla BF2. I assumed you could also edit the one in the PR profile folder too. Perhaps AncientMan can confirm how the launcher deals with this.Brisk187 wrote:As of now, modifying the General.con file in my Profiles\0001 directory will cause PR to give me a verification error and won't let me start the game.
In fact I just tried dropping renderer.drawfps 1 in that file, but the result is the same.
[R-MOD]Cp: epoch if I wasn't dancing right now I'd shoot you.
-
AncientMan
- Retired PR Developer
- Posts: 5111
- Joined: 2007-05-22 07:42
Re: Does PR have something similar to autoexec?
There's no way to automatically perform "game.lockfps" without triggering a file verification error. Maybe though, if I get some time, I can sort something out in the options menu for you. But it's a pretty low priority thing at the moment I have to say.

-
Brisk187
- Posts: 103
- Joined: 2013-09-15 23:07
Re: Does PR have something similar to autoexec?
Have you considered allowing the modifying of the .con files in our profile directories?
-
AncientMan
- Retired PR Developer
- Posts: 5111
- Joined: 2007-05-22 07:42
Re: Does PR have something similar to autoexec?
Allowing such a thing allows cheating and exploiting the game. There's a reason why it triggers a verification error
.


