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.
[Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order
- eradicator
- 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
- 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.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order
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".
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.
- eradicator
- 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
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.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [Rseding91] [0.17.47][Minor] Overlapping resource tiles have instable rendering z-order
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.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.
If you want to get ahold of me I'm almost always on Discord.