Ok, this topic comes up often on different forums, and I’m gonna share what I’ve done.
I see many people complain about big lag-issues. Yes, everyone lags but there is a lot you can do to reduce it. More ram helps, but I don’t know how much. Myself I run with 512 mb ram, and I only lag badly when there is more than 30 mobs on screen. And, I run the game up to 10 hours straight, including trips to PA, and it doesn’t slow down the game that much.
So, first thing to do, is windows Virtual Memory. I assume you know how to change this, so I won’t go into Windows details, but more line it out. Note: Changing the virtual memory/pagefile MIGHT damage your system.
First of all, some basics. The pagefile is Windows’ virtual memory, that is, where it stores things that there isn’t room for in the RAM. Reading from the harddrive is slower than accessing things from the ram-chips, so many thinks that removing the pagefile solves things. This is actually wrong. What this results in is that wrong things is kept in the ram, cluttering it up more.
To have an efficient pagefile, most people suggest it being the double of what you have installed of ram, so for my system, I need it around 1024mb. As a constant pagefile is not recommended (will come back to that) I’ve set it to 768 - 1280. That way it can grow some.
The pagefile, as all files on fat/ntfs-filesystems, gets fragmented. Fragmentation means that the file is not written in order. Imagine reading a book, where the pages are not after each other, but you have to “access” the book from more places. This is slow, so we want to have the pagefile defragmented at all times. Running defrag is a good idea, but it doesn’t help for long. And while on the subject, a constant pagefile gets fragmented way faster than a variable one! So, how do we avoid fragmentation? As fragmentation mostly occurs when the system writes to parts of the harddrive where the pagefile is located, we have to avoid this at all costs.
First of all, you need to know how to partition your harddrive. For a multi-disk system I reccomend having the pagefile on a different harddrive than both windows and PE if possible. For a two disk system, have pe and windows on one harddrive, and the pagefile on the other disk, preferable the fastest disk. (And by fastest I don’t always mean the one with the highest rpm, run some benchmarks to find the one to use).
Now we know which disk to use, and here comes the trick: Partition the disk so you have one partition that is Max size of Pagefile+half a gb in size. Also make sure that it is on the beginning of the disk. All excess free space can be used as always. (I recommend Partition Magic for windows, not very expencive, and I’m not sure if there are any other good non-destructive partitioning programs out there, at least not free).
Now, set windows to use the pagefile-partition as the drive to use. From now on, NEVER write to this disk. I’ve now run this setup for 3 months, and defragmentation of the pagefile has never been necesary. As I write this article, I wanted to defrag it just for fun, and it took under a second to do so. In other words, you can set up your computer to do it when it boots, or once a day without system interference.
Next tip: Turn of all those dingly thingsy windows xp comes with as standard. They really do take up some precious system resources, and they are nothing but mere eye-candy (ok, not really candy either). I also recommend for more experienced users to get rid of the whole taskbar, as explorer.exe is know to reat resources like an atrox likes oj’s.
The systray: People think programs that lay dorment here do just that, lay dorment. They don’t. They are longu, and your ram is noob. They take a big bite of things, and should be shut off. Same with any anti-virus software while playing. (I do not recommend having the anti-virus software disabled while using the computer for other things, see firew0lfs thread on windows security). Msn is also a bad wolf, so if you dear, close it completly while playing. As alt+tabbing from the game causes unnescesary writes to the pagefile and is not recommended, you won’t have need for msn anyway ![]()
That’s it this time, may add more later.