<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.seculargames.org/index.php?action=history&amp;feed=atom&amp;title=Players%3ATechnical%2FAffinity</id>
	<title>Players:Technical/Affinity - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.seculargames.org/index.php?action=history&amp;feed=atom&amp;title=Players%3ATechnical%2FAffinity"/>
	<link rel="alternate" type="text/html" href="https://wiki.seculargames.org/index.php?title=Players:Technical/Affinity&amp;action=history"/>
	<updated>2026-06-14T04:54:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.seculargames.org/index.php?title=Players:Technical/Affinity&amp;diff=19531&amp;oldid=prev</id>
		<title>imported&gt;Ezri: Added summary at top</title>
		<link rel="alternate" type="text/html" href="https://wiki.seculargames.org/index.php?title=Players:Technical/Affinity&amp;diff=19531&amp;oldid=prev"/>
		<updated>2015-07-31T14:29:13Z</updated>

		<summary type="html">&lt;p&gt;Added summary at top&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Description = __NOTOC__&lt;br /&gt;
This script will use the Affinity part of cmd.exe and start, and pick a random CPU to run EverQuest on.&lt;br /&gt;
This will in theory extend the lifetime of your cpu by spreading the load over different cores each time Everquest is run.&lt;br /&gt;
That is; Everquest will run on one core, but each time it runs it will pick a core at random.&lt;br /&gt;
&lt;br /&gt;
= Script =&lt;br /&gt;
Create a batch file inside your Everquest Folder (for this example it assumes C:\EQLite).&lt;br /&gt;
Call the batch file A_Run_Everquest.bat&lt;br /&gt;
Copy paste the following code into the batch file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@@ECHO OFF&lt;br /&gt;
&lt;br /&gt;
REM This only works up to Minimum of 1 and Maximum of 8 Cores&lt;br /&gt;
REM It picks a random CPU core between 1 and the Maximum and runs Everquest on that CPU core&lt;br /&gt;
&lt;br /&gt;
setlocal&lt;br /&gt;
SET _AppFolder=C:\EQLite&lt;br /&gt;
SET _AppName=EVERQUEST&lt;br /&gt;
SET _AppEXE=eqgame.exe&lt;br /&gt;
SET _AppParams=patchme&lt;br /&gt;
SET /a _MaxCPU=8&lt;br /&gt;
SET /a _rand=%RANDOM%*%_MaxCPU%/32768+1 &lt;br /&gt;
SET _affinity=0x01&lt;br /&gt;
IF %_rand% EQU 2 SET _affinity=0x02&lt;br /&gt;
IF %_rand% EQU 3 SET _affinity=0x04&lt;br /&gt;
IF %_rand% EQU 4 SET _affinity=0x08&lt;br /&gt;
IF %_rand% EQU 5 SET _affinity=0x10&lt;br /&gt;
IF %_rand% EQU 6 SET _affinity=0x20&lt;br /&gt;
IF %_rand% EQU 7 SET _affinity=0x40&lt;br /&gt;
IF %_rand% EQU 8 SET _affinity=0x80&lt;br /&gt;
&lt;br /&gt;
cmd.exe /c start &amp;quot;%_AppName%&amp;quot; /affinity %_affinity% &amp;quot;%_AppFolder%\%_AppEXE%&amp;quot; %_AppParams%&lt;br /&gt;
endlocal&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Edits Required =&lt;br /&gt;
* Edit _AppFolder=&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;C:\EQLite\&amp;lt;/span&amp;gt;   change this to the folder path that you installed everquest into&lt;br /&gt;
* Edit _MaxCPU=&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;8&amp;lt;/span&amp;gt;   change this to the number of CPU cores you have (you can find this in Task Manager)&lt;br /&gt;
* Change your short cut from C:\EQLite\eqgame.exe patchme  to  C:\EQLite\A_Run_Everquest.bat&lt;/div&gt;</summary>
		<author><name>imported&gt;Ezri</name></author>
	</entry>
</feed>