When drawing arcs from a "circle" larger than a few tiles, arcs are culled prematurely.
(It seems like they're culled based on their origin being in view. Possibly, they should be culled based on target through target + max_radius in view?)
New game, no mods:
(right click -> play if video not autoplaying)
This makes a UI element I'm working on somewhat unreliable:
[boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally
- bolderbrush10
- Burner Inserter
- Posts: 14
- Joined: Thu Oct 14, 2021 4:12 am
- Contact:
[boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally
Last edited by bolderbrush10 on Tue Dec 28, 2021 12:00 pm, edited 3 times in total.
- bolderbrush10
- Burner Inserter
- Posts: 14
- Joined: Thu Oct 14, 2021 4:12 am
- Contact:
Re: rendering.draw_arc() culling too aggressive
factorio.log available upon request
Last edited by bolderbrush10 on Wed Jan 05, 2022 7:45 am, edited 1 time in total.
- bolderbrush10
- Burner Inserter
- Posts: 14
- Joined: Thu Oct 14, 2021 4:12 am
- Contact:
Re: [1.1.50] rendering.draw_arc() culling too aggressive
I messed around a little more and noticed that the premature culling didn't seem to happen when moving up and down, just side to side.
Edit: And the same horizontal behavior applies to rendering.draw_circle(), too
Weird.
Edit: And the same horizontal behavior applies to rendering.draw_circle(), too
Weird.
Re: [boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally
Thanks for the report. Issue is now fixed for 1.1.51.
- bolderbrush10
- Burner Inserter
- Posts: 14
- Joined: Thu Oct 14, 2021 4:12 am
- Contact:
Re: [boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally
Much appreciated, thank you!