Go Back QUAKE LIVE Forums > QUAKE LIVE: Game Forums > Getting Started > Run QuakeLive faster/better on dedicated cpu-core - permanently! (PB fix)[batch file]
Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-20-2009, 10:07 PM
DCR DCR is offline
Member
 
Join Date: Nov 2008
Posts: 2,264
Lightbulb Run QuakeLive faster/better on dedicated cpu-core - permanently! (PB fix)[batch file]

I have benchmarked the performance of running QL at dedicated cpu core, and at my current dual-core cpu, running firefox then at dedicated core 2 (or 1 if u will 0 being the first core then) yields a 6% faster performance in timedemo, and no stops, more fluid.

I tried several, like a dozen times to get the same FPS benchmark from running QL at the first cpu core, dedicated, and was never able to reach the same FPS as with running it on the second cpu core, dedicated. Ie 288fps vs 272 FPS, the results were most consistent. This at my standard somewhat tweaked out config setup.

(A few words on PB:
Punkbuster services need to be priority adjustable on real time and at least, and most preferrably, from installation standpoint.

Meaning when installing punkbuster services the pnkbstrA and pnkbstrB can be set to be runned at *always* low or high priority. I'm saying either high or low, because i've encountered that high priority has relatively fixed the "Heartbeats" issue with PB, though i haven't tested this myself, as i dont have had that kind of problem so much.

Also i'm interested if PB works better if run at same cpu core as the game, or here with QL, the browser's exe file.

If you are interested in tweaking Windows services priority take a look at Process Lasso ( http://www.bitsum.com/prolasso.php ) - from where you can set Punkbuster services, f.example, at a permanent CPU priority/permanent dedicated CPU core level. Personally i dont need it, since PB runs fine here, but if u have problems... Might be worth checking in to. It runs a background process so take that into consideration if its worth it to you.
)
Here's the Quake Live icon, so you can set that to the batch file:
QL_Icon.ico.txt Remove the ".txt" extension at end of filename so it just reads .ico (icon) as file extension.

start file "Start_QL.bat" (i use this personally myself so customize to your liking)

RD /S /Q M:\MyGames\QuakeLive\home\pb\svlogs
del /F /Q M:\MyGames\QuakeLive\home\baseq3\error.log
net stop PnkBstrA
net stop PnkBstrB

cmd.exe /C start /LOW /affinity 1 net start PnkBstrA
cmd.exe /C start /LOW /affinity 1 net start PnkBstrB

taskkill /F /IM explorer.exe

cmd.exe /C start /HIGH /affinity 2 M:\MyGames\FXPortable\QuakeLive_FirefoxPortable.ex e
cmd.exe /C start /LOW /affinity 1 explorer.exe


del /F /Q M:\MyGames\QuakeLive\home\baseq3\error.log
RD /S /Q M:\MyGames\QuakeLive\home\pb\svlogs


end file "Start_QL.BAT"



Note 1:
The cmd.exe leading to the pnkbstr services doesnt change the priority or cpu core of the punkbuster services, but im hoping to find a work around for that (which doesnt involve needed 3d party tool like process lasso) - This is because the PB services need to be started with the "net start" command, so probably you actually start the "net" command on those settings.

Note 2:
Also you can see i close explorer.exe and restart it so it stays on the opposite core of the game. Once again, edit as you see fit for your system.
I also delete them gawdamn punkbuster logs, they don't delete themself and stays up to a maximum of 1000 log files. On my system with 64kb file clusters, that's 64Megabytes =) ) (I just recalled PB also stores some logfiles under %windir% so'll see if i can't add them to be deleted too.)

Note 3:
As you can see i have moved QuakeLive directory to a location of my own choosing. Take a look in this thread for background info http://www.quakelive.com/forum/showt...t=junction.exe

Download the tool from here : http://download.sysinternals.com/Files/Junction.zip

unpack junction.exe to "$OEM$\$$\System32" folder on your Windows Installation cd/dvd/usb (media from where u install windows) - to have it automatically copied to your "windows\system32" folder upon a new installation. This way you can set the path of QL directory upon windows installation if you want to, but this is not the purpose of this thread, i'm just saying that it's a ***nice*** possibility. (Especially with Firefox coming in a portable version)

I use this command to set my quakelive directory:
junction "%APPDATA%\id Software\quakelive" "M:\MyGames\QuakeLive"

Finally, download timedemo "demo four" from here:
http://quakefour.net/ql/four.dm_73 and see if you can't beat post #20 here:http://www.quakelive.com/forum/showt...imedemo&page=2

(which i probably would beat now, if i overclocked computer again)

For referance i now run with:

Windows x64 sp2, 4850 universally underclocked to 500/750, x2 5600 am2 underclocked to 2.8ghz, and ddr2-1066 underclocked to ddr2-800-fast timings. Extremely stable, extremely consistent performance.

I've probably forgotten something, and/or edit post per any suggestions if any one reads this.



Thanks.

Last edited by DCR : 05-20-2009 at 10:27 PM.
Reply With Quote
  #2  
Old 05-21-2009, 08:29 AM
FlexyFlox FlexyFlox is offline
Member
 
Join Date: May 2009
Posts: 7
Thumbs up

heh ... that's I called HC gamer...

for setting affinity free utility http://www.koma-code.de/index.php?op...d=88&Itemid=93

btw this is not so much good solution cmd.exe /C start /HIGH /affinity 2 M:\MyGames\FXPortable\QuakeLive_FirefoxPortable.ex e

because if you setup high priority on this proccess it can slow down system that is not good because windows are medium between HW and QL ... so I advice rather than giving high priority to lowing some not system apps like im, audioplayers and others ...

I was on local MS meeting about proccesses, threads, debugging ... so it can by thrustfull ^^^

//edit: but thats true if you setup only one proccess on one core it maybe doesnt matter which priority it has

Last edited by FlexyFlox : 05-21-2009 at 09:34 AM.
Reply With Quote
  #3  
Old 05-22-2009, 01:26 AM
DCR DCR is offline
Member
 
Join Date: Nov 2008
Posts: 2,264
Default

On my system, only the firefox browser is dedicated to the second cpu core, it doesnt matter much what priority it has, but it does help a little.

I could still set it to realtime priority so i could have stretched it even further.
I've played dozens upon dozens of games with this configuration and it works flawlessly for me.

The nice thing there about Process Lasso is that it allows you to SAVE what priority/What Cpu Core anything will ALWAYS/Permanently run at.

Which, from a geek standpoint, is very sexy.
Reply With Quote
  #4  
Old 05-22-2009, 05:22 AM
Bharv Bharv is offline
Member
 
Join Date: Mar 2009
Posts: 73
Default

I too noticed that setting it to one core makes it seem to run more smooth. I noticed that turning off Threaded Optimization in my nvidia control panel (in the firefox profile, that is) also appears to have a positive result although I can't quite put my finger on it.

I guess that since this engine was created in a time where single core systems were the norm, recreating that enviroment has a positive impact.

I'm definitly going to install ProLasso tonight and set the punkbuster services on the second/first core, see if that changes anything for the better.


Good stuff, DCR.

Last edited by Bharv : 05-22-2009 at 06:47 AM.
Reply With Quote
  #5  
Old 05-22-2009, 05:52 AM
mobius mobius is offline
Member
 
Join Date: Jul 2008
Posts: 29
Default Unrelated

Quote:
Originally Posted by Bharv View Post
I too noticed that setting it to one core makes it seem to run more smooth. I noticed that setting Threaded Optimization in my nvidia control panel(in the firefox profile, that is) also appears to have a positive result although I can't quite put my finger on it.

I guess that since this engine was created in a time where single core systems were the norm, recreating that enviroment has a positive impact.

I'm definitly going to install ProLasso tonight and set the punkbuster services on the second/first core, see if that changes anything for the better.


Good stuff, DCR.

Any chance this is bharv from quake!? =D
Reply With Quote
  #6  
Old 05-22-2009, 06:46 AM
Bharv Bharv is offline
Member
 
Join Date: Mar 2009
Posts: 73
Default

If you mean Quake 1, then no. Never went past the singleplayer in that game.
Reply With Quote
  #7  
Old 05-22-2009, 07:01 AM
DCR DCR is offline
Member
 
Join Date: Nov 2008
Posts: 2,264
Default

Quote:
Originally Posted by Bharv View Post
I guess that since this engine was created in a time where single core systems were the norm, recreating that enviroment has a positive impact.
This and also what u wrote there before, it's so true. While QL needs more horsepower apparently then Q3, all my tests shows a positive results when running it as here in post #1 in a dedicated mode.


Quote:
Originally Posted by Bharv View Post
I'm definitly going to install ProLasso tonight and set the punkbuster services on the second/first core, see if that changes anything for the better.
Good stuff, DCR.

Be adviced i've read that setting PB on low priority can make perform worse, but i have tested running pb on various cores/ and at the very least i didnt get any problems with that, f.ex being kicked or something. Actually one advice i've read was that it helped to set it to *high* priority, the punkbuster services that is. Once again, i dont have PB problems, but if i did, i'd do anything to try and fix it. ( That high priority helps, makes sense to me, if somehow PB gets stopped at either level, i can see the logic in the very well known Heartbeats failure from PB issue)

I'm very interested to see if you find any performance or otherwise changes regarding PB.

I would however think like this, that the punkbuster services might perform better if they operate on the same dedicated cpu-core as the game (browser) does. I'm not sure why, but something to do with that the data sent back and forth may be more seemless if it is one the same cpu-core.

My short tests there on PB didn't show any very noticeable difference though, but then once again, I dont have a PB problem, so that may be different for you/others.

Also the thing about multi thread in your nvidia control panel, it may help to keep that enabled if you keep the default of r_enablepostprocess 1 active, just a random thought there. I dont keep that setting active, and dont have nvidia card in computer, so i wouldn't know.

Thanks!
Reply With Quote
  #8  
Old 05-22-2009, 07:28 AM
n00kie n00kie is online now
Member
 
Join Date: Jul 2008
Posts: 429
Default

My PB stutter problem has just been solved since I set PnkBstrB priority class to high and nothing more. I hav also experimented with different CPU affinity concerning firefox and both pnkBstr services but that resulted no improvement at all (though I hav a dualcore CPU, too) I agree Process Lasso is a really nice tool bcuz it can save each changes for next system startup. Now I can play QL completly fluid
Reply With Quote
  #9  
Old 05-22-2009, 11:39 AM
o0MonkeY0o o0MonkeY0o is offline
Member
 
Join Date: Mar 2009
Posts: 137
Default

Dnt wana sound like a ghey, but this is old news, Most games runing the PB client, if set to 1 core usually fixed most PB related FPS problems.
Reply With Quote
  #10  
Old 05-22-2009, 06:04 PM
Bharv Bharv is offline
Member
 
Join Date: Mar 2009
Posts: 73
Default

Quote:
Originally Posted by o0MonkeY0o View Post
Dnt wana sound like a ghey, but this is old news, Most games runing the PB client, if set to 1 core usually fixed most PB related FPS problems.

Hate to break it to you, but just because its old news does not mean its old news for NEW PEOPLE. This is, after all, the Getting Started forum.
Reply With Quote
Reply



Forum Jump

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


All times are GMT -6. The time now is 07:58 PM.


QUAKE LIVE™ © 2007-2010, Id Software LLC, a ZeniMax Media company. All Rights Reserved.
Privacy Policy | Terms of Use | Legal Notices