Project 1999

Go Back   Project 1999 > General Community > Technical Discussion

Reply
 
Thread Tools Display Modes
  #11  
Old 08-18-2022, 02:36 PM
khandman khandman is offline
Sarnak

khandman's Avatar

Join Date: Aug 2013
Posts: 225
Default

I use the below from a batch file.

C:\Windows\System32\cmd.exe /C Start /affinity 1 N:\Games\Project1999\eqgame.exe patchme
__________________
From the dark ages : Knights of Nemesis, Lords of Truth, Ordained, Project Eon, Council of Grey
Reply With Quote
  #12  
Old 09-04-2022, 12:17 AM
VII VII is offline
Banned


Join Date: Jul 2013
Posts: 180
Default

i have a 12 core 24 thread cpu, how does this work for me? just change maxcpu=24? can i still keep it at 6? to limit which cores it can use?
Reply With Quote
  #13  
Old 09-04-2022, 12:39 PM
digush digush is offline
Sarnak


Join Date: Jul 2017
Location: USA
Posts: 268
Default 12 cores 24 thread

setlocal
SET _AppFolder=C:\YOUR_EQ_DIRECTORY
SET _AppName=EVERQUEST
SET _AppEXE=eqgame.exe
SET _AppParams=patchme
SET /a _MaxCPU=24
SET /a _rand=%RANDOM%*%_MaxCPU%/32768+1
SET _affinity=0x01
IF %_rand% EQU 2 SET _affinity=0x02
IF %_rand% EQU 3 SET _affinity=0x04
IF %_rand% EQU 4 SET _affinity=0x08
IF %_rand% EQU 5 SET _affinity=0x10
IF %_rand% EQU 6 SET _affinity=0x20
IF %_rand% EQU 7 SET _affinity=0x40
IF %_rand% EQU 8 SET _affinity=0x80
IF %_rand% EQU 9 SET _affinity=0x100
IF %_rand% EQU 10 SET _affinity=0x200
IF %_rand% EQU 11 SET _affinity=0x400
IF %_rand% EQU 12 SET _affinity=0x800
IF %_rand% EQU 13 SET _affinity=0x1000
IF %_rand% EQU 14 SET _affinity=0x2000
IF %_rand% EQU 15 SET _affinity=0x4000
IF %_rand% EQU 16 SET _affinity=0x8000
IF %_rand% EQU 17 SET _affinity=0x10000
IF %_rand% EQU 18 SET _affinity=0x20000
IF %_rand% EQU 19 SET _affinity=0x40000
IF %_rand% EQU 20 SET _affinity=0x80000
IF %_rand% EQU 21 SET _affinity=0x100000
IF %_rand% EQU 22 SET _affinity=0x200000
IF %_rand% EQU 23 SET _affinity=0x400000
IF %_rand% EQU 24 SET _affinity=0x800000

start /affinity %_affinity% eqgame patchme
endlocal




this should work if you have 12 cores and 24 threads
Reply With Quote
  #14  
Old 09-04-2022, 12:43 PM
digush digush is offline
Sarnak


Join Date: Jul 2017
Location: USA
Posts: 268
Default expound upon

the point of all this is to choose a random thread out of the 24 threads that you have so EQ isn't always running on thread "7" or some hard-coded thread#

so u mite run the batch file once and it'll select thread #3
then you close EQ run the batch file and it'll select thread#18

keeps it random as possible to give your cores a chance to take a break between EQ sessions

Reply With Quote
  #15  
Old 09-04-2022, 02:30 PM
VII VII is offline
Banned


Join Date: Jul 2013
Posts: 180
Default

understood. it seems that since i’m running eq as admin the batch needs to run cmd.exe as admin as well to have to set affinity. was extra lines can i add to run cmd.exe in the batch as admin?

currently if i run the batch as you’ve written my affinity on eqgame.exe is still all cores enabled. if i uncheck run as admin in eqgame.exe properties, then your batch works as intended. but i was to keep eq in compatibility mode which requires admin.
Reply With Quote
  #16  
Old 09-04-2022, 09:55 PM
mcoy mcoy is offline
Planar Protector


Join Date: Mar 2017
Posts: 2,171
Default

Quote:
Originally Posted by VII [You must be logged in to view images. Log in or Register.]
understood. it seems that since i’m running eq as admin the batch needs to run cmd.exe as admin as well to have to set affinity. was extra lines can i add to run cmd.exe in the batch as admin?

currently if i run the batch as you’ve written my affinity on eqgame.exe is still all cores enabled. if i uncheck run as admin in eqgame.exe properties, then your batch works as intended. but i was to keep eq in compatibility mode which requires admin.
Create a shortcut to the batch file, and in the advanced properties of the shortcut, set it to run as admin:

[You must be logged in to view images. Log in or Register.]

-Mcoy
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT -4. The time now is 05:51 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.