[posila][16.1] Decoratives FPS drop
[posila][16.1] Decoratives FPS drop
Starting a new map and zooming out makes the game lag a lot, fps drops from 60 to 15.
Turning off Show Decoratives fixes the lag, but the map is not pretty.
Loading an old save from version 15.40 the problem doesn't exist. fps are ok at 60 with Decoratives On or Off.
Factorio is using about 4gb ram, I'm at 4k resolution with an nvidia 970 video card.
I also tried running the game at lower resolutions (example 1920x1080) and the problem is somewhat less visible but still there, fps drops from 60 to 45fps.
I would assume this new factorio version (16.1) takes up more video memory from decorations, and old factorio (15.x) decorations don't?
Any way we could turn on just "some" decorations? The ones from version 15 don't lag and the game wouldn't be so ugly without them.
version 16.1 new game Zoom in Decoratives on version 16.1 new game Zoom Out Decoratives on version 16.1 new game Zoom Out Decoratives Off old save game Zoom out Decoratives On old save game Zoom out Decoratives off
Turning off Show Decoratives fixes the lag, but the map is not pretty.
Loading an old save from version 15.40 the problem doesn't exist. fps are ok at 60 with Decoratives On or Off.
Factorio is using about 4gb ram, I'm at 4k resolution with an nvidia 970 video card.
I also tried running the game at lower resolutions (example 1920x1080) and the problem is somewhat less visible but still there, fps drops from 60 to 45fps.
I would assume this new factorio version (16.1) takes up more video memory from decorations, and old factorio (15.x) decorations don't?
Any way we could turn on just "some" decorations? The ones from version 15 don't lag and the game wouldn't be so ugly without them.
version 16.1 new game Zoom in Decoratives on version 16.1 new game Zoom Out Decoratives on version 16.1 new game Zoom Out Decoratives Off old save game Zoom out Decoratives On old save game Zoom out Decoratives off
Re: [16.1] Decoratives FPS drop
Managed to solve the problem by changing
Atlas texture size largest to 8192
in fact there are 3 alternatives solutions,
lowering atlas texture size,
or lowering video memory usage,
or turning off decoratives.
while keeping the rest at maximum values.
So right now I'm playing fine with 60 fps, decoratives On, with video memory usage All and Atlas texture size at 8192.
I wonder if I should put video memory usage high instead? Because I pretend to have decoratives On.
Atlas texture size largest to 8192
in fact there are 3 alternatives solutions,
lowering atlas texture size,
or lowering video memory usage,
or turning off decoratives.
while keeping the rest at maximum values.
So right now I'm playing fine with 60 fps, decoratives On, with video memory usage All and Atlas texture size at 8192.
I wonder if I should put video memory usage high instead? Because I pretend to have decoratives On.
- impetus maximus
- Smart Inserter
- Posts: 1299
- Joined: Sat Aug 20, 2016 10:07 pm
- Contact:
Re: [16.1] Decoratives FPS drop
i change 'Video memory usage' from medium which gave 20 FPS zoomed out, to high which netted 60FPS fully zoomed out with Decoratives on in a desert.
this is with normal sprite resolution, integrated Intel HD 3000 1GB video memory, @ 1440x1080 even 1920x1080
i left the Atlas Texture size where it was when i started. (4096)
this is with normal sprite resolution, integrated Intel HD 3000 1GB video memory, @ 1440x1080 even 1920x1080

i left the Atlas Texture size where it was when i started. (4096)
Re: [posila][16.1] Decoratives FPS drop
Looks like version 16.3 fixed a "bit" this problem,
I can now have Decoratives On, video memory usage ALL, atlas texture size Largest Possible. (yes I did the restart) but sometimes, it starts to lag again... 17.6 fps on new map generated, zoomed out
At first I was happy and thought my problem was fixed, but no... still there, I'll keep testing and report what I can find
Although it wasn't a problem of medium or lower video memory (on my part), it fixed "sometimes" my low performance.- Fixed very low performance of drawing decoratives on medium or lower video memory usage setting. (54681)
I can now have Decoratives On, video memory usage ALL, atlas texture size Largest Possible. (yes I did the restart) but sometimes, it starts to lag again... 17.6 fps on new map generated, zoomed out
At first I was happy and thought my problem was fixed, but no... still there, I'll keep testing and report what I can find
- impetus maximus
- Smart Inserter
- Posts: 1299
- Joined: Sat Aug 20, 2016 10:07 pm
- Contact:
Re: [posila][16.1] Decoratives FPS drop
try disabling tree sprite bit maps. i need to do more testing, but my system doesn't seem to like that one.
-
- Manual Inserter
- Posts: 1
- Joined: Fri Dec 15, 2017 10:08 pm
- Contact:
Re: [posila][16.1] Decoratives FPS drop
I am also getting this same issue, my system is pretty powerful and could handle megabases with much higher frame rate on 15.X
System:
OS: Arch Linux
Cinnamon Version: 3.6.6
Linux Kernel: 4.13.12-1-ARCH
Processor: Intel i7-3820 @ 3.6 GHZ x 4
Memory: 32GiB
Graphics Card: GeForce GTX 750 Ti
Results:
Fully zoomed out with decoratives on = 15 FPS / 60 UPS
Fully zoomed out with decoratives off = 60 FPS / 60 UPS
Attempted solutions:
Upgrading from version 16.2 to 16.3 didn't change anything.
Setting Atlas Texture Size from Largest Possible to 8192 didn't change anything
Smoke, clouds, item shadows, inserter shadows, Lights Render Resolution and Max Render Threads all have no effect on FPS at all.
System:
OS: Arch Linux
Cinnamon Version: 3.6.6
Linux Kernel: 4.13.12-1-ARCH
Processor: Intel i7-3820 @ 3.6 GHZ x 4
Memory: 32GiB
Graphics Card: GeForce GTX 750 Ti
Results:
Fully zoomed out with decoratives on = 15 FPS / 60 UPS
Fully zoomed out with decoratives off = 60 FPS / 60 UPS
Attempted solutions:
Upgrading from version 16.2 to 16.3 didn't change anything.
Setting Atlas Texture Size from Largest Possible to 8192 didn't change anything
Smoke, clouds, item shadows, inserter shadows, Lights Render Resolution and Max Render Threads all have no effect on FPS at all.
Re: [posila][16.1] Decoratives FPS drop
Hey checksumfail, try to restart your linux and then run only factorio with decoratives on, video memory on all, atlas texture size at largest. Does it help?
When I restart my windows and then go play factorio with the settings on max, the fps are stable at 60.
Problem starts when I open a few chrome internet pages (nothing exaggerated, like 5 tabs at most) and leave them open while I tab into factorio.
(Now this is the hard part because it's inconsistent) - Sometimes it lags factorio, sometimes not.
When it does lag, frame rate drops to 15-17fps is at max zoom out, decoratives on, video memory on All, atlas texture size Largest Possible.
(Having a few internet pages open shouldn't lag factorio, didn't happen at 0.15.x, but now at 0.16.3 sometimes it does!)
Also checksumfail, when you have those 15fps, try to lower a setting on Atlas texture size and restart factorio, does it still happen? It fixed for me as I said in earlier post.
When I restart my windows and then go play factorio with the settings on max, the fps are stable at 60.
Problem starts when I open a few chrome internet pages (nothing exaggerated, like 5 tabs at most) and leave them open while I tab into factorio.
(Now this is the hard part because it's inconsistent) - Sometimes it lags factorio, sometimes not.
When it does lag, frame rate drops to 15-17fps is at max zoom out, decoratives on, video memory on All, atlas texture size Largest Possible.
(Having a few internet pages open shouldn't lag factorio, didn't happen at 0.15.x, but now at 0.16.3 sometimes it does!)
Also checksumfail, when you have those 15fps, try to lower a setting on Atlas texture size and restart factorio, does it still happen? It fixed for me as I said in earlier post.
Re: [posila][16.1] Decoratives FPS drop
Cheers for pointing me out in that direction, I did some testing around it, here's what I found:impetus maximus wrote:try disabling tree sprite bit maps. i need to do more testing, but my system doesn't seem to like that one.
viewtopic.php?f=7&t=54986
I believe it made a slight different bug than this one, so I created another topic, but the basic idea is there, we want to fix the FPS drops.
It's funny, now that I check again the screenshots I post, the lag comes when there are more trees on screen

- impetus maximus
- Smart Inserter
- Posts: 1299
- Joined: Sat Aug 20, 2016 10:07 pm
- Contact:
Re: [posila][16.1] Decoratives FPS drop
i would think lowering atlas size would help. 

Re: [posila][16.1] Decoratives FPS drop
You can grab GPU-Z and check there for VRAM usage (dedicated and dynamic). Any dynamic memory usage will mean potentiall for lags since textures will be swapped between RAM and VRAM. Since 0.16 added a lot of high res stuff VRAM usage has gotten bigger overall.
Using smaller atlases helps since they can be swapped more easily - it has the drawback of generating more draw calls so overall performance might suffer. By experimienting with atlas size and vram usage option you can figure out setup that will work best for your GPU/driver combination. It's not an exact science sadly since it can easily vary between driver versions.
You can also see that Chrome uses VRAM since it works on GPU acceleration - so running game without it enabled might be faster.
Using smaller atlases helps since they can be swapped more easily - it has the drawback of generating more draw calls so overall performance might suffer. By experimienting with atlas size and vram usage option you can figure out setup that will work best for your GPU/driver combination. It's not an exact science sadly since it can easily vary between driver versions.
You can also see that Chrome uses VRAM since it works on GPU acceleration - so running game without it enabled might be faster.
Re: [posila][16.1] Decoratives FPS drop
This issue seems serious to me... With decoratives activated :
Sometimes I get 30FPS zoomed out, so I mess with settings (mainly atlas size), restart, and sometimes it works, and I'm back at 60FPS. Then later when I restart the game, it goes back to 30FPS, so I repeat the process.
So I'm pretty sure that with the same settings, sometimes it works perfectly, sometimes not. But I haven't figured yet any setting that never works, or any setting that always work. Well of course, disable decoratives always work.
I'm on Win10, i5-4440 @ 3.1GHz, NVIDIA GeForce GTX 770, 8Go RAM
Sometimes I get 30FPS zoomed out, so I mess with settings (mainly atlas size), restart, and sometimes it works, and I'm back at 60FPS. Then later when I restart the game, it goes back to 30FPS, so I repeat the process.
So I'm pretty sure that with the same settings, sometimes it works perfectly, sometimes not. But I haven't figured yet any setting that never works, or any setting that always work. Well of course, disable decoratives always work.
I'm on Win10, i5-4440 @ 3.1GHz, NVIDIA GeForce GTX 770, 8Go RAM
Re: [posila][16.1] Decoratives FPS drop
Hey DanGio, did you read my other post?
viewtopic.php?f=7&t=54986
It looks like I have the same problem you have. Sometimes there's the issue, sometimes all is fine.
Are you near a dense forest area when the fps drops? What resolution you running the game?
viewtopic.php?f=7&t=54986
It looks like I have the same problem you have. Sometimes there's the issue, sometimes all is fine.
Are you near a dense forest area when the fps drops? What resolution you running the game?
Re: [posila][16.1] Decoratives FPS drop
For 0.16.17 I added graphics option "Separate lower object atlas" (disabled by default)
If enabled sprites drawn under shadows will be put in a separate sprite atlas with enabled mipmaps. On most GPUs this will lower GPU load when drawing lots of decoratives. Downside is decrease of sprite batching efficiency which causes higher CPU usage in rendering. Atlas with mipmaps has also increased size in VRAM by 1/3.
We have lot of improvements for rendering in 0.17 backlog, so we will probably fix it in some better, more generic way.
But, I think it might not be enough for some people in this thread - you should try to reduce Atlas size or change Video memory usage.
The higher video memory usage, the more sprites the game puts to sprite atlases, which increases efficiency of sprite batching and reduces CPU load when rendering, but gives graphics driver less room for arranging everything into VRAM.
If enabled sprites drawn under shadows will be put in a separate sprite atlas with enabled mipmaps. On most GPUs this will lower GPU load when drawing lots of decoratives. Downside is decrease of sprite batching efficiency which causes higher CPU usage in rendering. Atlas with mipmaps has also increased size in VRAM by 1/3.
We have lot of improvements for rendering in 0.17 backlog, so we will probably fix it in some better, more generic way.
But, I think it might not be enough for some people in this thread - you should try to reduce Atlas size or change Video memory usage.
The higher video memory usage, the more sprites the game puts to sprite atlases, which increases efficiency of sprite batching and reduces CPU load when rendering, but gives graphics driver less room for arranging everything into VRAM.