Larian Banner
Previous Thread
Next Thread
Print Thread
One particular level loading very slowly #636357
09/11/17 02:26 AM
09/11/17 02:26 AM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
So I've been trying to solve this little issue all day. One level of mine began to load really sluggish and slow after I did a full AI regen. When I say slow, it usually takes about 2-3 minutes every time I reload the level, and only this particular level.

I've tried the following things;

-Reinstalling all of DOS2 and Editor.
- Removing all Story Goals related to the level.
- Going through every item, scenery, trigger, light, etc in the world outliner to try and find any item that may be an outliar off-map. Caught up with all of Stranger Things season 2 thanks to this little chore.
- Made a copy of the level, and another empty sandbox, trying both a copy and a level template and regen a full ai there, all tests result in slow loading times.

Do you guys have any other ideas? I'd rather not spend a few days copying the important bits over and halfway remaking the level.

Re: One particular level loading very slowly [Re: The Composer] #636363
09/11/17 03:16 AM
09/11/17 03:16 AM
Joined: Dec 2013
Posts: 872
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 872
Does it happen both in the editor and in game?


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: One particular level loading very slowly [Re: The Composer] #636367
09/11/17 03:51 AM
09/11/17 03:51 AM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
Yep

Re: One particular level loading very slowly [Re: The Composer] #636427
09/11/17 03:19 PM
09/11/17 03:19 PM
Joined: Dec 2013
Posts: 872
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 872
Is there anything in the log when loading the level that shows what the game is "working on" while you're waiting?


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: One particular level loading very slowly [Re: The Composer] #636428
09/11/17 03:33 PM
09/11/17 03:33 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
Yeah, plenty! I've made several copies of the level and deleting stuff, trying to locate what ever culprit cause the problems.


Re: One particular level loading very slowly [Re: The Composer] #636430
09/11/17 04:04 PM
09/11/17 04:04 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
Why it complains about items on another level, I've got no idea. I've done a gazillion tests, the only action that seems to solve it is to delete the main terrain and do a full regen. Deleting every other item but the terrain and doing a regen does nothing. So as far as I can tell, the terrain is the issue, somehow.

Re: One particular level loading very slowly [Re: The Composer] #636431
09/11/17 04:04 PM
09/11/17 04:04 PM
Joined: Dec 2013
Posts: 872
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 872
Yikes. Did that all start at once or have these kinds of warnings increased over time?

The one that jumps out to me most is that AIGrid::ProcessFloodHeap. Sounds like a memory exhaustion issue if the term is being used in typical software jargon.

"Trying to RegisterForgetEffect nullptr effect" is also pretty bad sounding.

Don't even know where to begin really with all those warnings. Sounds like something fundamentally broken, corrupted, or pushing this tool beyond its limits. frown


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: One particular level loading very slowly [Re: Windemere] #636432
09/11/17 04:20 PM
09/11/17 04:20 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
I'm gonna try to backup the main terrain and delete it, make a new one and to a regen. See if things are ok then, and just remake the terrain. Bit of work, but not as much as remaking the whole thing.

Re: One particular level loading very slowly [Re: The Composer] #636433
09/11/17 04:29 PM
09/11/17 04:29 PM
Joined: Sep 2017
Posts: 162
Larian_JB Offline
member
Larian_JB  Offline
member

Joined: Sep 2017
Posts: 162
Hi there,

How big is this level? We did run into some issues related to map size in RC_Main, so keeping your map smaller than that is a good rule of thumb.

Re: One particular level loading very slowly [Re: The Composer] #636434
09/11/17 04:38 PM
09/11/17 04:38 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
It's smaller than that. It's about 2/3 of Fort Joy.

Re: One particular level loading very slowly [Re: The Composer] #636435
09/11/17 04:49 PM
09/11/17 04:49 PM
Joined: Sep 2017
Posts: 162
Larian_JB Offline
member
Larian_JB  Offline
member

Joined: Sep 2017
Posts: 162
Are you running out of RAM or loading the level from a slow hard drive?

Re: One particular level loading very slowly [Re: The Composer] #636436
09/11/17 04:59 PM
09/11/17 04:59 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
Got 64BG ram, running on an SSD.

Re: One particular level loading very slowly [Re: The Composer] #636437
09/11/17 05:07 PM
09/11/17 05:07 PM
Joined: Sep 2017
Posts: 162
Larian_JB Offline
member
Larian_JB  Offline
member

Joined: Sep 2017
Posts: 162
Well that ought to be plenty! If you can't find a solution I can take a look if you send me the following folders (as a .zip or .rar):
- Data/Mods/YourMod
- Data/Editor/Mods/YourMod
- Data/Public/YourMod
- Data/Projects/YourMod

Though I won't be able to fix it any time soon, I might be able to tell you why your load performance is so poor.

Re: One particular level loading very slowly [Re: The Composer] #636438
09/11/17 05:09 PM
09/11/17 05:09 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
Alright I'll drop you a link in PM with the backup I did prior to reinstall. The level in this case is "DC_FTJ_Isles". (Will take some time to upload)

Re: One particular level loading very slowly [Re: The Composer] #636439
09/11/17 05:18 PM
09/11/17 05:18 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
The part that boggles my mind is that I have larger maps than this loading at normal speeds. So there is 'something' holding it down, just can't pinpoint what.

Everything worked fine one moment, go to bed, next morning I add two rocks and a boat, and do a full regen and suddenly it boggles down.

Last edited by The Composer; 09/11/17 05:19 PM.
Re: One particular level loading very slowly [Re: The Composer] #636450
09/11/17 07:18 PM
09/11/17 07:18 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
It could seem potentially it didn't like having two large waterplanes on top of eachother (to make the ships sail, bottom being walkable), I'm trying with 1 terrain 1 plane instead now.

Re: One particular level loading very slowly [Re: The Composer] #636473
09/11/17 10:09 PM
09/11/17 10:09 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
Alright, can close the thread. Solved it after about 18 hours of debugging, trial and errors. I suspect there was a stray AI seeder from a level template causing issues. The problem initially began after doing a full regen with recently imported and exploded level templates which contained AI seeders. Deleting all the AI seeders, doing a full regen and placing new seeders from scratched made everything load smooth and fast again!

Re: One particular level loading very slowly [Re: The Composer] #636476
09/11/17 11:02 PM
09/11/17 11:02 PM
Joined: Oct 2017
Posts: 78
United Kingdom
Branvex Offline
journeyman
Branvex  Offline
journeyman

Joined: Oct 2017
Posts: 78
United Kingdom
Nice, glad you didn't lose your level. Is looking good.

Re: One particular level loading very slowly [Re: The Composer] #636481
09/11/17 11:32 PM
09/11/17 11:32 PM
Joined: Sep 2017
Posts: 495
Norway
The Composer Offline OP
addict
The Composer  Offline OP
addict

Joined: Sep 2017
Posts: 495
Norway
It all turned out for the better, through the process, I made a few ocean textures that wasn't available as root templates, so got much nicer caribbean-like water now \o/


Powered by UBB.threads™ PHP Forum Software 7.6.2