Huge memory load Pyanodons mods

pyanodon's mods are here

Moderator: pyanodon

TheBearKing
Inserter
Inserter
Posts: 29
Joined: Wed Jul 05, 2017 12:01 pm
Contact:

Huge memory load Pyanodons mods

Post by TheBearKing »

I am looking at starting a Pyanodons run, and as such I have installed all of Pyanodons mods. However when starting the game I see that pyanodons mods are putting tremendous strain on my system. I have listed the mods I have active below:

At the moment I dont have many mods active:
Auto research
Belt Immunity
Bottleneck
FNEI
Helmod
Long reach
Miniloader
Nanobots
Py coal
Py fusion
Py HT
Py Industry
Py raw ores
Upgrade planner
Yarm

After factorio has booted and I am at the main menu, my memory usage is as follows (according to win10 resource monitor):
With all mods enabled:
Working set: 1.62 GB
Commit (virtual memory): 13.13 GB
Total = 14.75 GB

When I disable Py's mods (from above set)
Working set: 3.13 GB
Commit: 4.51 GB
Total: 7.64 GB

So Pyanodons mod double the memory load on my system, clogging up my system and almost crashing it. If I would add the Alien Biomes mod for example, Factorio would crash outright. I have 8GB of RAM on my motherboard. Anybody else experiencing such memory loads with Py's mods, or am I an unlucky fellow? Anything that can be done about this load in order to reduce it?
ulmennaleith
Inserter
Inserter
Posts: 24
Joined: Sun Dec 09, 2018 9:46 am
Contact:

Re: Huge memory load Pyanodons mods

Post by ulmennaleith »

Unfortunately, it's normal with pymods .. Maybe try to disable high res sprites in the settings ?
kingarthur
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: Huge memory load Pyanodons mods

Post by kingarthur »

What gpu do u have. I've found that for some reason directx was giving me ram bloat with pymods where as opengl does not
TheBearKing
Inserter
Inserter
Posts: 29
Joined: Wed Jul 05, 2017 12:01 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by TheBearKing »

What gpu do u have. I've found that for some reason directx was giving me ram bloat with pymods where as opengl does not
Where do I check this? Ingame I cannot find an option for this
kingarthur
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: Huge memory load Pyanodons mods

Post by kingarthur »

TheBearKing wrote: Tue Jan 29, 2019 6:03 pm
What gpu do u have. I've found that for some reason directx was giving me ram bloat with pymods where as opengl does not
Where do I check this? Ingame I cannot find an option for this
It doesnt show ingame. The log file will say though which one its using
TheBearKing
Inserter
Inserter
Posts: 29
Joined: Wed Jul 05, 2017 12:01 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by TheBearKing »

The log file reads: "Initialised Direct3D:...". I am not very knowleadgable on this topic (yet), so does this mean that my gpu is using directX? Any way of changing that option if it does?
kingarthur
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: Huge memory load Pyanodons mods

Post by kingarthur »

Yes. This page from one of the devs has a way to do it

viewtopic.php?t=9300
Cardoyle
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Sun Mar 18, 2018 1:06 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by Cardoyle »

What worked for me is Options->Graphics->Bottom left change sprite Resolution from High to normal.

This cut my load times from 5+minutes(game was also unplayable due to stuttering) to around 30 seconds(game runs smooth also)
TheBearKing
Inserter
Inserter
Posts: 29
Joined: Wed Jul 05, 2017 12:01 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by TheBearKing »

@Cardoyle: I imagine that that is going to work. Unfortunately doesn't this mean that you don't have the nice HR graphics? That would be a shame, in my opinion.

@Kingarthur: Thanks for the response, it has been a huge help. I have done some more testing and here is what I found.
(openGL can be easily enforced via steam: Factorio --> Properties --> Launch settings --> --force-opengl)
With openGL:
With Py's mods enabled:
Startup time (on SSD): 42 seconds
Working set: 4.04 GB
Commit (virtual memory): 6.53 GB
Total = 10.57 GB

Without Py's mods
Startup time (on SSD): 29 seconds
Working set: 0.64 GB
Commit: 2.21 GB
Total: 2.85 GB

With Direct3D:
With Py's mods enabled:
Startup time (on SSD): 6 minutes, 32 seconds (system stalls multiple times during startup, crashing all background programs, leading to the high startup time)
Working set: 1.95 GB
Commit (virtual memory): 14.35 GB
Total = 16.30 GB

Without Py's mods
Startup time (on SSD): 50 seconds
Working set: 3.55 GB
Commit: 5.00 GB
Total: 8.55 GB

Concluding, openGL significantly reduces the memory load of the system, and even slightly reduces the startup time of Factorio. Going off on above results it seems that openGL is the superior choice. Do you know of any signifant drawbacks in using openGL over Direct3D? If not, why is openGL not activated by default?
kingarthur
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: Huge memory load Pyanodons mods

Post by kingarthur »

It's based on system hardware. Gpu speficly. Because I have an AMD card it defaults to opengl. I've never noticed any problems from using opengl but I've never used directx with factorio to compare the difference.

According to rseding91 .17 uses a never version of directx that wont have that memory issue anymore.
TheBearKing
Inserter
Inserter
Posts: 29
Joined: Wed Jul 05, 2017 12:01 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by TheBearKing »

Funnily I have an AMD card as well, so somehow my system didn't default to openGL. Well I'll try with the openGL setting, and see if things go worse. My system runs much smoother in any case. Thanks for the help!
Cardoyle
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Sun Mar 18, 2018 1:06 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by Cardoyle »

TheBearKing wrote: Wed Jan 30, 2019 5:25 pm @Cardoyle: I imagine that that is going to work. Unfortunately doesn't this mean that you don't have the nice HR graphics? That would be a shame, in my opinion.
Yeah Unfortunately I do not get to experience the High Res graphics.

I tried messing around with a few settiings(changing to OpenGl) but its prob just my old PC.I am still running on Win 7 with 8GB of ram and a 8GB 1060 GTX.
It's a sacrifice i am willing to take tho if it means i get to keep playing the awesome mod.
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Huge memory load Pyanodons mods

Post by Airat9000 »

by the way, I have the same problem, you need to still make pictures in the CD format, too, as the mod will be finished,
because otherwise, 7 gigabytes is already ripped off, I tried to change the settings if I change 12 gigs altogether
amd 290 radeon

start game!!!
and if it develops further and plays at all a nightmare under 12 gigabytes takes away - this is me at the minimum settings.
:) You will have to take a new computer for this under 128 gigs of RAM, and then the video card, processor 32 nuclear

2019-02-08_1-56-00.png
2019-02-08_1-56-00.png (39.23 KiB) Viewed 5814 times
2019-02-08_3-17-20.png
2019-02-08_3-17-20.png (39.52 KiB) Viewed 5814 times
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Huge memory load Pyanodons mods

Post by orzelek »

Or wait for 0.17 - they made a lot of optimizations there and AFAIK DirectX version won't explode memory like it does now. And texture compression will become better so less VRAM needed since with PY set it's getting overboard now.
eformo
Long Handed Inserter
Long Handed Inserter
Posts: 78
Joined: Thu Jul 31, 2014 12:27 pm
Contact:

Re: Huge memory load Pyanodons mods

Post by eformo »

I'm in this boat too. Used to play full pY suite, but had to stop due to memory load on my modest desktop with 8gb of RAM.

I'm hopeful though maybe not optimistic to be able to play it again when v0.17 is out (and after mod updates).
Post Reply

Return to “PyMods”