Jump to content

Startup Performance Optimization DLL for SimCity 4  2.1

   (10 Reviews)

1 Screenshot

About This File

Optimizes the DBPF plugin loading that the game performs on startup.

The effect that the plugin has on the game's startup time will depend on your system and plugins. It may have little to no effect for some configurations.

Features

  • Reduces the time for the game to show the SC4 logo by up to 90%.
  • Adds an optimization to the game code for large data reads.
  • Allows the game to handle plugin paths that are longer than the standard Microsoft Windows limit of 260 characters.
    • Some of the file paths used by sc4pac packages may exceed the above limit.
  • Reduce lag and city load times with large numbers of .SC4* plugins.
  • Disables the game code that searches the entire file if the DBPF signature was not found.
  • Changes the game code that loads the .SC4* files to ignore files with non-DBPF file extensions, .txt, .png, etc.
    • With this change only .SC4Desc, .SC4Lot, .SC4Model, and files without any file extension will be loaded.
    • Files without any file extension are included due to some older plugins having that issue.
  • Changes the 'missing plugin' dialog to display the plugin pack ID in hexadecimal.

System Requirements

The plugin may work on Windows 7, but I do not have the ability to test that.

Installation

  1. Close SimCity 4.
  2. Copy SC4DBPFLoading.dll into the top level of either plugins folder (place it directly in <Documents>\SimCity 4\Plugins or <SC4 install folder>\Plugins, not in a subfolder).
  3. Start SimCity 4.

Command Line Argument

The plugin adds a -StartupDBPFLoadTrace: command line argument that can be used for advanced tracing/debugging of the plugin loading process.

It supports to following options (only 1 can be used at a time):

  • ShowLoadTime - shows a message box with the resource loading time in milliseconds.
  • WinAPI - shows message boxes before and after the resource loading code runs, this allows the user to start and stop a Process Monitor trace when the message box is shown.
  • ListLoadedFiles - writes the loaded DBPF files to the plugin's log file in the order SC4 reads them.

Troubleshooting

The plugin should write a SC4DBPFLoading.log file in the same folder as the plugin.
The log contains status information for the most recent run of the plugin.

Source Code and Support

Plugin thread: https://community.simtropolis.com/forums/topic/763113-sc4dbpfloading

The plugin's source code and issue tracker are located on GitHub: https://github.com/0xC0000054/sc4-dbpf-loading

If you would like to make voluntary contributions to support me in continuing to create more content for SimCity 4, I accept donations via PayPal: https://paypal.me/0xC0000054

Thanks to the few people who have donated to me.


What's New 2.1   View Changelog


Released

Improved the plugin's error logging, and various other optimizations.

  • Like 40
  • Yes 2
  • Thanks 11



User Feedback

Create an account or Sign In to leave a review

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

Sign In  

Already have an account? Sign in here.

Sign In Now

Create an Account  

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

Register a New Account


hugues aroux

   3 of 3 members found this review helpful 3 / 3 members

...and it's extremely effective...! *:thumb:

Share this review


Link to review
kkrj

   1 of 1 member found this review helpful 1 / 1 member

This mod definitely shortened the load up time to the region view (40 secs to 6 secs!). However, during game play, I noticed that when I select the Route Query tool, the cursor reverts back to the last used tool. For example, if I just laid down some low density residential, click on the Route Query tool, then try to query a building or road, the cursor would look like the low density residential cursor, but still function as the route query tool! This happens even if I press ESC to clear the tool before selecting the Route Query tool. After removing the mod, the Route Query tool works as expected. Strange.

Share this review


Link to review

I can't believe this came out nearly two years ago and I'm just now learning about it. I stopped playing SC4 for a while because the game was sooo slooooww with all my plugins and it wasn't fun anymore. This mod singlehandedly changed everything. I have nearly 8gb of cc installed, and with this plugin my various menus that once took 20+ seconds to open now open immediately. My game is as fast as it would be if I had no CC at all. Thank you so much for making this! I was scared I would have to datpack all my files but now I don't have to!

Share this review


Link to review

Literally "game changing" ! My game loads  40% faster now, which for a huge plugins folders means a lot. But the most fantastic for me is how fast the menus load now. Previously to this mod I had to wait, which caused the game to be tiring sometimes, but now it opens right away! Totally recommend , one of the best things ever made for this game ! Download it now !

Share this review


Link to review

A must-have addition to your game if you have a large plugins folder.

The loading times are something I just kind of put up with over the years. I used the DAT-packing method in the past, but found it a bit of hassle when adding new files. This DLL is not only easier to use, but also much more effective. I've noticed a significant reduction in the loading time of my 4 GB of files.

Share this review


Link to review

Game's loading faster than ever and so far I've noticed no major problems.  I can now go from startup to within the city tile in 2 to 3 minutes.  This is a must for quick play sessions where time is of the essence.  Excellent!

Share this review


Link to review

Oh yea, I notice a major substantial boost in load times for initial boot to region and loading region on my laptop running Windows 11 & NAM 48

Share this review


Link to review
×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

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. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

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

STEX Collections

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