A DLL Plugin for SimCity 4 that automatically makes the game run on a single CPU.
The plugin will force the game to use a single CPU unless the user has added the -CPUCount
command line argument.
If the -CPUCount
command line argument is present, the plugin will do nothing.
This behavior is intended to allow the user to experiment with using more than 1 CPU, and prevent any issues that
could be caused by both the plugin and the game trying to set the CPU count.
The plugin can be downloaded from the Releases tab: https://github.com/0xC0000054/sc4-single-cpu/releases
- Windows 10 or later
The plugin may work on Windows 7 or later with the Microsoft Visual C++ 2022 x86 Redistribute installed, but I do not have the ability to test that.
- Close SimCity 4.
- Copy
SC4SingleCPU.dll
into the Plugins folder in the SimCity 4 installation directory. - Start SimCity 4.
The plugin should write a SC4SingleCPU.log
file in the same folder as the plugin.
The log contains status information for the most recent run of the plugin.
This project is licensed under the terms of the MIT License.
See LICENSE.txt for more information.
gzcom-dll Located in the vendor folder, MIT License.
Windows Implementation Library MIT License
- Visual Studio 2022
- Open the solution in the
src
folder - Update the post build events to copy the build output to you SimCity 4 application plugins folder.
- Build the solution
Visual Studio can be configured to launch SimCity 4 on the Debugging page of the project properties.
I configured the debugger to launch the game in a window with the following command line:
-intro:off -w -CustomResolution:enabled -r1920x1080x32
You may need to adjust the resolution for your screen.