[Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order

Post by eradicator »

What?
Rendering order of resource tiles that share the same position depends on position of player.

Expected?
Rendering order should be independant of player position.

Why?
Accidentially generated an iron ore patch right on top of a coal patch. The noticed that the coal patch would heavily flicker when walking around.

Attached a short video (because 500kb video vs 10mb gif). The effect is better visible when the video is played back in a small window.
Attachments
flicker.mp4
(462.44 KiB) Downloaded 94 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15896
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order

Post by Rseding91 »

Thanks for the report. I don't consider this worth working on - resource entities are never meant to exist multiple on the same position. It doesn't work with the map view and it doesn't work with rendering (as you've found out).

I could enforce that mods can't do it but that seems like a lot of extra work for what is "just don't do that".
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order

Post by eradicator »

As mentioned i just found it accidentially and have no "usecase" for it. I just reported it in case it might indicate some general z-order-determinism problem with rendering.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15896
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order

Post by Rseding91 »

eradicator wrote: Mon Jul 01, 2019 12:05 pm As mentioned i just found it accidentially and have no "usecase" for it. I just reported it in case it might indicate some general z-order-determinism problem with rendering.
Yeah that happens with rendering when 2 t hings tell it to render different sprites at the same position at the same render layer. Relative order of things with identical rendering (except for the sprites themselves) isn't maintained for performance reasons.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Minor issues”