[0.11.1] Performance on windows 32 bit vs 64 bit
Posted: Sat Nov 08, 2014 1:56 am
I'm noticing some weird performance differences between 32 and 64 bit Factorio on my Windows 7 system. I wasn't sure if I should report this at all, but since I've seen some reports about frequent desyncs in MP when 32 and 64 bit clients are mixed, I figured it might just help someone with more in-depth knowledge of this matter to figure out what's happening.
The problem I'm experiencing is that with a decent number of mods loaded (most of DyTech and a few utility mods), I get frequent stutters in performance on 64-bit Factorio. This frequency is roughly once every 3 seconds and the stutter is noticable enough to be annoying. At first I figured it might be related to a specific mod or combination of mods (see https://forums.factorio.com/forum/vie ... =25&t=6550 for the thought process there), but I'm now reasonably confident that isn't the case. I have noticed the problem does not occur at all in the 32-bit version, otherwise using the exact same configuration and mods (I downloaded both as a zip, extracted to the same directory and copied the mods in).
I did some more digging and using Sysinternals Process Explorer, I noticed that the 64-bit version has a very high page fault delta peak of 180,000 roughly every 3 seconds, coinciding with the stutter. With 32-bit Factorio, the page fault delta is fairly consistently below 10, with an occasional peak in the 100s. Now, page faults are a normal occurence, but it's the difference that worries me.
To make matters more confusing, I also tried this same test on a laptop running Win7 64-bit. I was unable to reproduce it there, so that indicates it's either a fault somewhere in my hardware (possible, but unlikely as not a single other application gives me any trouble) or some specific combination of hardware, drivers and/or settings. Even though I'm unable to reproduce it, I'm still reporting it because of the earlier mentioned MP desyncs. It's my understanding that page faults are a fairly low-level operating system thing that the application may (should?) not be aware of. I have no doubt there's some leeway in this, but when there's peaks of this magnitude, I think it's conceivable that this may influence some calculations, in turn causing a desync.
I hope someone with some more knowledge of this stuff will be able to make heads and tails of my ramblings
I'd be happy to provide any more information if required.
For reference, the system I'm having this problem on is a Core i5 CPU, 16GB RAM, AMD Radeon 6870 GPU and an SSD that holds both OS and Factorio. My laptop is a Core i7, 8GB RAM, Nvidia GPU (I couldn't easily find the model right now, but it's probably something in the 400 mobile range) and also an SSD for OS + Factorio.
The problem I'm experiencing is that with a decent number of mods loaded (most of DyTech and a few utility mods), I get frequent stutters in performance on 64-bit Factorio. This frequency is roughly once every 3 seconds and the stutter is noticable enough to be annoying. At first I figured it might be related to a specific mod or combination of mods (see https://forums.factorio.com/forum/vie ... =25&t=6550 for the thought process there), but I'm now reasonably confident that isn't the case. I have noticed the problem does not occur at all in the 32-bit version, otherwise using the exact same configuration and mods (I downloaded both as a zip, extracted to the same directory and copied the mods in).
I did some more digging and using Sysinternals Process Explorer, I noticed that the 64-bit version has a very high page fault delta peak of 180,000 roughly every 3 seconds, coinciding with the stutter. With 32-bit Factorio, the page fault delta is fairly consistently below 10, with an occasional peak in the 100s. Now, page faults are a normal occurence, but it's the difference that worries me.
To make matters more confusing, I also tried this same test on a laptop running Win7 64-bit. I was unable to reproduce it there, so that indicates it's either a fault somewhere in my hardware (possible, but unlikely as not a single other application gives me any trouble) or some specific combination of hardware, drivers and/or settings. Even though I'm unable to reproduce it, I'm still reporting it because of the earlier mentioned MP desyncs. It's my understanding that page faults are a fairly low-level operating system thing that the application may (should?) not be aware of. I have no doubt there's some leeway in this, but when there's peaks of this magnitude, I think it's conceivable that this may influence some calculations, in turn causing a desync.
I hope someone with some more knowledge of this stuff will be able to make heads and tails of my ramblings

I'd be happy to provide any more information if required.
For reference, the system I'm having this problem on is a Core i5 CPU, 16GB RAM, AMD Radeon 6870 GPU and an SSD that holds both OS and Factorio. My laptop is a Core i7, 8GB RAM, Nvidia GPU (I couldn't easily find the model right now, but it's probably something in the 400 mobile range) and also an SSD for OS + Factorio.