[posila][0.16.51] framerate drop when drawing mutiple wires

Post Reply
Fast Inserter
Fast Inserter
Posts: 184
Joined: Tue Mar 03, 2015 9:20 pm

[posila][0.16.51] framerate drop when drawing mutiple wires

Post by gheift » Wed Aug 01, 2018 5:56 pm


I noticed a hugh framerate drop, when the game has to draw multiple wires. I attached a minimal save, where I could reproduce the issue. A also added a trace I recorded using

Code: Select all

perf record -F 100000 -p $(pidof factorio) -g

Kind regards,
perf report -n --stdio
(3.25 KiB) Downloaded 24 times
minimal save file
(3.73 MiB) Downloaded 23 times
screenshot including timing information
screenshot-2018-08-01_19-35-03.jpg (4.76 MiB) Viewed 644 times

Factorio Staff
Factorio Staff
Posts: 8647
Joined: Wed Jun 11, 2014 5:23 am

Re: [0.16.51] framerate drop when drawing mutiple wires

Post by Rseding91 » Thu Aug 02, 2018 2:57 am

Thanks for the report however I can't reproduce what you're seeing.

I suspect it's related to your graphics card and or drivers since the logic for rendering wires is identical to rendering the inserters and the tiles they all sit on. The only difference is more wires means more things drawn which can overload the graphics card if it can't keep up.
If you want to get ahold of me I'm almost always on Discord.

Factorio Staff
Factorio Staff
Posts: 3125
Joined: Thu Jun 11, 2015 1:35 pm

Re: [posila][0.16.51] framerate drop when drawing mutiple wires

Post by posila » Thu Aug 02, 2018 8:49 am

Thanks for the report.
Even though rendering was rewritten and greatly optimized for 0.17, your save uncovered performance problem even in the new renderer, so that's fixed.

But the core of the problem is that circuit connector sprites are not included in atlases with "Video memory usage" set to "High", so drawing of circuit connectors is not batched resulting in 10000 draw calls, which is quite bad, so we need to look into that too.

Post Reply

Return to “Assigned”

Who is online

Users browsing this forum: Klezmer and 3 guests