Ludeon Forums

RimWorld => Bugs => Topic started by: filippe999 on April 07, 2015, 07:17:19 AM

Title: Rimworld Loading times
Post by: filippe999 on April 07, 2015, 07:17:19 AM
Hello fellow colonists of this rimworld!

Latel i've been adding many mods to my game, and the loading times went from a minute to two in the vannila game to almost 25m now, with all the mods installed, is it possible to lower the loading times? 25m is just way too much.
Title: Re: Rimworld Loading times
Post by: warden on April 07, 2015, 08:00:24 AM
25 minutes, are you being serious? You've timed it? Something's badly off with the mods you run. Even 1-2 minutes for vanilla is a long time to load, you might consider upgrading your hardware. An SSD drive is one of the cheapest improvements any computer can get, even laptops.

My load time for the largest map size possible, with a 5+ year running colony, was about 20-30 seconds. About a dozen or so mods.
Title: Re: Rimworld Loading times
Post by: Smikis on April 07, 2015, 08:49:03 AM
I've noticed that if you tab out and just hover over tab checking if its loaded it will always show that is still loading until you fully maximise game window, maybe thats your issue, you just tab out of the game while loading and just hovering to see if its loaded ( something I do as well )
Title: Re: Rimworld Loading times
Post by: SSS on April 07, 2015, 10:23:47 AM
Quote from: Smikis on April 07, 2015, 08:49:03 AM
I've noticed that if you tab out and just hover over tab checking if its loaded it will always show that is still loading until you fully maximise game window, maybe thats your issue, you just tab out of the game while loading and just hovering to see if its loaded ( something I do as well )

This may be the culprit. There's an option to run the game in the background that's deselected by default. It won't load if you minimize unless that's turned on.
Title: Re: Rimworld Loading times
Post by: Goldenpotatoes on April 07, 2015, 10:27:17 AM
I remember reading awhile back about VPN programs (hamachi, tuungle, ect) causing some serious increase of loadtimes. I used to have god-awful loadtimes like yours, but after removing every VPN program I had installed, it went from 5-10 minutes to around 30-60 seconds.

So yeah, if you have anything like that installed, uninstall it and try again.
Title: Re: Rimworld Loading times
Post by: skullywag on April 07, 2015, 12:56:22 PM
Modded with 50+ mods takes 2 mins max...something is wrong, that isnt normal. Not sure what bar the above checks though.
Title: Re: Rimworld Loading times
Post by: Goo Poni on April 07, 2015, 01:20:14 PM
My game takes a few minutes to load, enough that I can go make a quick sandwich and still be back in time to catch it loading in. Didn't do that before with A7, even on a 3 year colony that ran like crap with TTM and a whole lotta extras
Title: Re: Rimworld Loading times
Post by: Panzer on April 07, 2015, 03:09:46 PM
Same problem as Goo Poni, a few alphas back loading was fine, now it takes some minutes to load. I can tell when the loading is almost done though, I can hear the geothermals starting up ^^
Title: Re: Rimworld Loading times
Post by: Tynan on April 07, 2015, 03:19:09 PM
Unfortunately there seems to be a bug in the Unity code that loads images and sounds for mods that can make it take up to 20s per image.

https://ludeon.com/mantis/view.php?id=506

I may have to write some new code to work around the Unity image loading code entirely because yeah, it's pretty bad.
Title: Re: Rimworld Loading times
Post by: kic on April 07, 2015, 04:25:44 PM
Yikes. That's a heck of a loading time/bug. I think I'd leave the game running all the time if I had that happen.
Title: Re: Rimworld Loading times
Post by: filippe999 on April 07, 2015, 09:02:47 PM
I guess i'll try to stop running skype and bittorrent to see how my loading times roll, also, I meant the time it takes for the game to start(double-click the .exe until main menu, the game itself once loaded takes 40s at max to load a save), let's see how allowing it to run in background affects my loading times, thanks for the answers ;D

Don't see any noticeable difference when not running VPN programs, also toggling on to run on background makes no difference on the startup time or the time it takes to open/close the mods menu
Title: Re: Rimworld Loading times
Post by: RemingtonRyder on April 08, 2015, 01:31:37 AM
I found a blog post (http://blogs.unity3d.com/2015/01/10/curious-case-of-slow-texture-importing-and-xperf/) on this issue, by the way. :)

At least, I'm guessing it is, based on the symptoms.
Title: Re: Rimworld Loading times
Post by: filippe999 on April 08, 2015, 02:04:59 PM
So i've decided to realltime how long it takes to load my game, from starting the application until the main menu, my original mod list is http://pastebin.com/KWDvdBtY]here (http://pastebin.com/KWDvdBtY).
So I decided to time how long it takes to load this list, and when it hit 36m I gave up, so my max time is 36m.
Measuring time until main menu:
Now i'll enable the mods one at a time and see which one adds the more startup time.
Just noticed a major flaw in my testing methodology from above, i was adding all mods, one at a time and the time kept scaling up, although what i wanted to know in reality was how long that mod took to load, not how long the whole game took to load, as such from now on i'll only add the mod mentioned and subtract from the base, that way I can get results faster:
Same settings as up except that i subjected all imaged from cybernetics storm mod to the .png compressing service of this website (https://tinypng.com/)=6m 48s(-1s) from previous time :'(
Title: Re: Rimworld Loading times
Post by: skullywag on April 08, 2015, 07:57:41 PM
try deleting the texture folder, itll error but see if its any quicker.
Title: Re: Rimworld Loading times
Post by: RemingtonRyder on April 09, 2015, 06:05:07 AM
^
^
^
Basically the Unity image loader reads in three bytes at a time, with no buffer. At least that's what I read. Understandably, this means textures take far longer to load than they should.
Title: Re: Rimworld Loading times
Post by: Tynan on April 09, 2015, 10:54:50 AM
Yeah, I'm going to try to fix this bug for A10.

Unfortunately it'll mean working around some breakage in Unity. Got to see if I can read PNG files using my own code without touching the Unity stuff.
Title: Re: Rimworld Loading times
Post by: skullywag on April 09, 2015, 02:31:02 PM
everything i read about that bug stated it was in the editor only, are you sure its the same bug, im sure there is something wrong but is it this exact issue?
Title: Re: Rimworld Loading times
Post by: Tynan on April 09, 2015, 02:38:18 PM
Quote from: skullywag on April 09, 2015, 02:31:02 PM
everything i read about that bug stated it was in the editor only, are you sure its the same bug, im sure there is something wrong but is it this exact issue?

Editor only? I've never seen this bug in the editor, actually. So yes I'm quite sure.
Title: Re: Rimworld Loading times
Post by: Goo Poni on April 09, 2015, 03:10:59 PM
Strange. Before, I was able to start the game up in a few seconds and it was just the actual loading into a game that took a little while, checking the mod folder also took a little while as well. But now, Rimworld has just been taking it's time to load up at all. I deleted my mod config and after leaving it for a few minutes, I got to the main menu. Re-enabled my mods and... well it's been mulling that over for the better part of an hour now. It is still working, trying to load assets (http://puu.sh/h7E4b/3e6fde9cf0.png), but it's going about it so slowly. Not sure what I changed to make Rimworld wanna act differently today. A restart didn't do much for me either.
Title: Re: Rimworld Loading times
Post by: skullywag on April 09, 2015, 03:31:32 PM
Quote from: Tynan on April 09, 2015, 02:38:18 PM
Quote from: skullywag on April 09, 2015, 02:31:02 PM
everything i read about that bug stated it was in the editor only, are you sure its the same bug, im sure there is something wrong but is it this exact issue?

Editor only? I've never seen this bug in the editor, actually. So yes I'm quite sure.

theres a comment on that blog post from the author stating its in the editor only, hence me saying yes you have an issue but are you sure its this.
Title: Re: Rimworld Loading times
Post by: RemingtonRyder on April 09, 2015, 08:02:23 PM
I didn't see that when I was reading the first time. Still, as Tynan says, he'd noticed a Unity problem with images before. Some of the performance testing steps in the article could be useful to determine where the problem lies and evaluate the fix code.
Title: Re: Rimworld Loading times
Post by: Tynan on May 01, 2015, 01:12:21 PM
I've reworked the code (circumventing Unity) so this should be addressed.