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

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

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

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

Hello,

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,
Gerhard
perf report -n --stdio
Attachments
factorio-current.log
(3.25 KiB) Downloaded 27 times
test-frame-drop-3.zip
minimal save file
(3.73 MiB) Downloaded 26 times
screenshot-2018-08-01_19-35-03.jpg
screenshot including timing information
screenshot-2018-08-01_19-35-03.jpg (4.76 MiB) Viewed 729 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 9029
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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.

posila
Factorio Staff
Factorio Staff
Posts: 3379
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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.

Ref: 69876

Post Reply

Return to “Assigned”

Who is online

Users browsing this forum: No registered users