LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Welcome, Guest. Please login or register.
Did you miss your activation email?

December 04, 2021, 04:13:36 PM

Login with username, password and session length

Author Topic: Is Running SimCity 4 off a RAMDisk faster?  (Read 1273 times)

0 Members and 1 Guest are viewing this topic.

Offline Durfsurn

  • Modding Apprentice
  • NAM Team
  • Forums Senator
  • *
  • Posts: 513
  • Total likes: 168
  • Reputation: 5
  • Textures!
Is Running SimCity 4 off a RAMDisk faster?
« on: June 13, 2020, 04:48:09 AM »
Hello all,

I thought this might be a useful comparison for those of us who've considered using a RAMDisk to load SC4 files from. On my rig it would seem there is little benefit however I concede that my RAM isn't exactly optimal or super-modern and my SSD is only SATA III so results may vary. I found it interesting though that the SSD managed to pretty much keep pace!

Thoughts welcome, as are other peoples experiences!

Offline jeffryfisher

  • Uncle Jeff
  • Forums Councilmember
  • *
  • Posts: 74
  • Total likes: 63
  • Reputation: 0
  • The most local level of gov't is one citizen
    • Liberating Digital Content
Re: Is Running SimCity 4 off a RAMDisk faster?
« Reply #1 on: June 13, 2020, 12:08:50 PM »
The gain from RAM will come when starting the game, loading your first region, loading a big menu for the first time, and perhaps when switching out of the underground or zone view.

The amount of gain will depend on what other boosts you might have without RAM-drive. DAT-packing is a big one: Modern HD's are great at reading ahead and buffering big files to keep a data bus full, so once each file's DMA gets going, it runs as fast as RAM going through the same bottleneck. If you don't DAT-pack, then RAM-drive will gain against HD seek-time on thousands of plugin files.

The cost of RAM-drive is loading it. How that affects you will depend on how you set it up. I use RAM-drive; it loads my plugins and one region at boot time while I walk to the kitchen for a beer or read email on a separate machine -- in other words, it doesn't leave me twiddling my thumbs.

The risk of a RAM-drive is that you forget to copy your updated region files back to HD (or "saves" may be lost to a power failure). I use a BAT file to start SC4. It not only gives SC4 100% of an isolated physical CPU core, but on game-exit it asks me if I want to save back to HD, and does so automatically if I say yes (xcopy'ing new and changed files).

This has an unexpected side benefit: If I run into a CTD, the problem city is in RAM, and I have a reprieve during which I may backup my HD version to a safe place before committing the problem city to disk.

EDIT: Forgot to say that I still shave about 15% off both game-load and first-city load even after DAT-packing. Switching out of zone-view is not a problem for me, but that could also come from having a good graphics card with good config settings (e.g. no shadows).
« Last Edit: June 13, 2020, 12:39:22 PM by jeffryfisher »
Modding PC games since 1993 (back when we needed hex-editors)

Offline fantozzi

Re: Is Running SimCity 4 off a RAMDisk faster?
« Reply #2 on: May 10, 2021, 05:29:30 AM »
Please allow me a more philosophical remark on this - if you don't have this extra minute on startup maybe SC4 isn't the right game for you.

I write this regarding the risk, jeffryfisher mentions in the post above and that shouldn't be underestimated.

Especially not by scatterbrained minds like me.

On the other hand a SC4 with built in Alzheimer's ("Did you notice something?" - "No, why? City looks as always.") ... in a few years ... could be a challenge too for me. Who knows?

« Last Edit: May 10, 2021, 05:31:20 AM by fantozzi »