[Lou][2.0.41][linux] Performance drop in fulgora night

This subforum contains all the issues which we already resolved.
schwubdiwub
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 19, 2025 8:36 pm
Contact:

[Lou][2.0.41][linux] Performance drop in fulgora night

Post by schwubdiwub »

What did you do?
I didn't do anything in particular

What happened?
While fulgora daytime performance is normal (3ms update time) and at night the performance drops (22ms update time)

What did you expect to happen instead? It might be obvious to you, but do it anyway!
Performance at night is close to same while daytime

Does it happen always, once, or sometimes?
Always


Additional info:
I don't really have anything big built on fulgora or on any planet, but I have discovered quite a bit of the fulgora map. When looking at the active chunks at day and at night, basically the whole map gets updated at night (but not at daytime) even thought there are no player buildings or units in or around those chunks.
I use some basic mods, but the problem persists even with all mods disabled.


For reproduction, you can just open the save file and wait for the night.
save file: https://drive.google.com/file/d/1YMGd6w ... drive_link
Attachments
map without debug info
map without debug info
map.png (2.84 MiB) Viewed 1124 times
debug info day
debug info day
day.png (6.18 MiB) Viewed 1124 times
debug info night
debug info night
night.png (5.35 MiB) Viewed 1124 times
map at night with active chunks
map at night with active chunks
map-night.png (2.83 MiB) Viewed 1124 times
map at day with active chunks
map at day with active chunks
map-day.png (2.81 MiB) Viewed 1124 times
factorio-current.log
(36.05 KiB) Downloaded 14 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15243
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.41][linux] Performance drop in fulgora night

Post by Rseding91 »

Thanks for the report. It looks like currently the cost of lightning is roughly O(N) with the number of chunks explored. Since you've force charted a huge rectangle area of the planet - you're getting a lot of lightning in all of the revealed area.

I don't currently have an answer for this except "don't do that" and or delete the extra chunks with a command such as this:

Code: Select all

/c
local surface = game.surfaces["fulgora"]
 for chunk in surface.get_chunks() do
  if (chunk.x < -100 or chunk.x > 100 or chunk.y < -100 or chunk.y > 100) then
    surface.delete_chunk(chunk)
  end
end
If you want to get ahold of me I'm almost always on Discord.
schwubdiwub
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 19, 2025 8:36 pm
Contact:

Re: [2.0.41][linux] Performance drop in fulgora night

Post by schwubdiwub »

Hey, thanks for the fast reply. The deletion of the outer chunks indeed "fixed" the problem.
User avatar
Lou
Factorio Staff
Factorio Staff
Posts: 255
Joined: Mon Nov 30, 2020 10:50 am
Contact:

Re: [Lou][2.0.41][linux] Performance drop in fulgora night

Post by Lou »

Once again thanks for the report. The most of the update time was taken by the smoke created by lightnings, which we made to not be created when not visible. Since 2.0.43, Fulgora night-time performance should be basically the same as daytime.
Post Reply

Return to “Resolved Problems and Bugs”