Jump to content

1 post in this topic Last Reply

Highlighted Posts

I've read several game-performance and game-runs-slowly threads over the years. Every one of them says that an SSD will help a lot, but I never saw anyone report results from a ram drive. Well, I just rebuilt my system with 64-bit Win7, which can access more RAM than SC4 can, and I lucked into some free-salvage DDR2 memory sticks, upgrading from 4GB to 8GB of 667 MHz RAM. Since the system exists only for running legacy games like SC4, and because these dinosaurs can't use more than 3.5 GB even after applying the 4GB patch, the only use I see for all that RAM is to cache files on a virtual disk.

So I downloaded, scanned and installed a free program called imDisk. Then I used its convenient GUI interface to setup a RAM-drive with the following parameters:

  • 3GB
  • NTFS
  • Create at startup
  • (advanced) Use AWE (only physical RAM)
  • (advanced) Custom mount point at "...\RAMSC4"

I then wrote two CMD batch files, one to run when I sign on, and another to launch SC4. Buried deep in a user folder that executes all of its contents every time I log in is a shortcut to my boot script . In win7, deep means C:\users\<your username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. Your OS may differ.


@echo off
echo Loading SC4 plugins into RAM disk
mkdir C:\Users\jrfisher\Documents\RAMSC4\Plugins
xcopy /D /Q /S T:\sc4\Plugins\* C:\Users\jrfisher\Documents\RAMSC4\Plugins\
echo Loading SC4 SF Peninsula region into RAM disk
mkdir C:\Users\jrfisher\Documents\RAMSC4\Regions
mkdir "C:\Users\jrfisher\Documents\RAMSC4\Regions\SF Peninsula"
xcopy /D /Q /S "T:\sc4\Regions\SF Peninsula\*" "C:\Users\jrfisher\Documents\RAMSC4\Regions\SF Peninsula\"
echo RAM-disk is ready

So what's happening here? RAMSC4 is my RAM drive's mount point (you may choose differently). I'm treating it like an alternate user dir. I create a plugins folder and a regions folder inside, and then I use xcopy to load the data I want to use (plugins and one region). My hard-disk user dir is on my 'T' drive; yours probably isn't, so make alterations if you adapt my script to your own use.

I can fire up the machine, log into Win-7 and go get a beer. When I come back, it's ready. The script's exec time is under a minute when I stay to wait for it, and I can even do some other tasks if I stick around while it runs (but disk access is sluggish!). Once the script has run once, then as long as the PC stays on, I can launch SC4 on it several times, each time invoking the other script from a (run as administrator) shortcut on my desktop:


@echo off
echo Launching SimCity 4 above normal priority, CPU1 only, res 1280x1024
pushd "C:\Program Files (x86)\SC4\Apps"
start "" /W /AFFINITY 2 /ABOVENORMAL "SimCity 4.exe" -f -gp -intro:off -music:off -d:DirectX -r1280x1024x32 -UserDir:"C:\Users\jrfisher\Documents\RAMSC4\"
echo Sync sc4 config
xcopy /D /Q /Y "C:\Users\jrfisher\Documents\RAMSC4\SimCity 4.cfg" "C:\Users\jrfisher\Documents\SimCity 4\"
echo sync changed city files
xcopy /D /S /Y  "C:\Users\jrfisher\Documents\RAMSC4\Regions\*"  "T:\sc4\Regions\"
echo Done  :)

This script is tricky to read. The pushd saves the current working directory on its way to the target where SC4 lives. Start then sets CPU affinity to the 2nd CPU only (effectively limiting the coming app to one core) and bumps priority "above normal". The W tells the script to wait for the app to end before doing further script commands. The program is "SimCity 4.exe" followed by its switches, which no longer need CPUCount in this context. Your switches might be different, especially the screen resolution. The UserDir is my RAM drive. Yours will use a different mount point if for no other reason than you have a different user name.

What comes after the app-start are xcopies from the RAM drive back to hard drive. Config remembers in-game settings and where you were in your region view; the regions files are your cities. The /Y switch in each tells xcopy to grab only files that are newer than counterparts already at the destination. Then popd changes the working directory back to whatever was pushed at the start of the script.

With plugins packed, loading the game from hard drive used to take 2:20, and loading my first city took another 3:10. Without even packing yet, loading the game from RAM drive takes 47 seconds, and loading my first city takes 2 minutes flat. My next step will be to datpack most plugins and possibly shrink the RAM drive, hopefully speeding up each stage even further.

This is a good gain for me, and scripts have reduced effort to the same as launching from a shortcut, so for those who have surplus RAM (and no budget to put an SSD in your SC4 computer), I heartily recommend using a RAM drive. Let me know if you have any questions  :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

Sign In  

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By gobrowns
      How many assets do you run while playing? What are your specs? I'm mostly curious what the maximum amount of assets is, but figured this could be a good thread for general discussion of how many assets people use.
    • By apeek
      Greetings everyone! Although largely unnoticed, I withdrew from the community upon the passing of my little brother in March of '16. Just prior, I discovered a secret of the software installation that could potentially benefit any style player and even help ensure the game's continued viability. However, that knowledge might have been disclosed or perhaps even documented since then. So, I must ascertain if there is any demand for the following procedure, confirmed working on Windows 7 through the recent release of Windows 10 requiring minimal freeware and no special skills:
      How to make SC4D utilize the discrete graphics adapter in your laptop for a significant performance boost.
    • By chfzdn
      I want to buy Cities:Skylines in distant future because it has good flexibility comparing to SC4. The base game starts from IDR 199,999 (or around $15) or if I wanted the Deluxe Edition, it would be $20 from Steam. But, if I want to buy all the expansion packs, they'll cost me around $65 dollar, which is ridiculously expensive to me. As comparison, SimCity 4 is priced at $19.99 or around IDR 280,000 and still gets tons of benefit by installing the free mods here on STEX. Yes, SC4 mods have some limits that making them not flexible but still worth it. OK, is there a cheaper C:S, especially with (possibly) all the EPs? If yes, where and when should I buy it? Also, my laptop runs on Linux with 4 GB of RAM, 500 GB of storage, Sandy Bridge Core i5 and HD Graphics 3000. Can I run the game? Is it smooth?
    • By dennodk
      I have a performance issue which I suspect might be due to my own custom made roads for the game, made using Blender and the new in-game road editor.   First, my system specs:     Windows 10 Home i7-8700K 16 GB DDR4 RAM GTX 1080 Ti
      This system should be able to handle basically anything I throw at it. Yet, the game slows down dramatically when I approach 20 000 inhabitants in the game. I tried removing all mods. I tried reinstalling the game. I tried start a new map without any mods, but still using my custom roads. And the problem persisted. But, as soon I replaced all my custom roads with the standard built-in roads the problem disappeared.   I am new to making custom assets, but I would argue that the roads are designed within reasonable specifications. Most of them are with <100 tri with 1024x1024 images for close-ups and 128x128 images for lod.   So my question is: Are there any performance hits related to custom roads I should be aware of, and what are the steps I can take to mitigate them?   Another question: Many of my roads have an emphasis on bikes, and I can see I have A LOT of bikes around the city. Could the sheer number of bikes affect the performance, even though the city is still relatively small?
    • By jmak
      In order to use this launcher, you will need to register for a PMR account at http://getpmr.com/join
      Poppy Multiplayer Regions (PMR) is a new multiplayer solution for SimCity 4 that allows for save protection and adjacent tile editing. The PMR launcher automatically synchronizes regions and launches SimCity 4 for you -- all you have to do is choose a region and log in.
      To learn more about PMR, please see my post on the forums. There is also a Readme that is installed along with the launcher.
  • Recently Browsing   0 members

    No registered users viewing this page.


Thank You for the Continued Support!

Simtropolis relies mainly on member donations to continue operating. Without your support, we just would not be able to be entering our 15th year online!  You've really help make this a great community.

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running, so that we can help keep bringing SimCity players together to share our creations.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Echange.
Make a donation and get one or all three discs today!


By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections