Page 1 of 1

[boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally

Posted: Tue Dec 28, 2021 8:50 am
by bolderbrush10
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:


Re: rendering.draw_arc() culling too aggressive

Posted: Tue Dec 28, 2021 8:55 am
by bolderbrush10
factorio.log available upon request

Re: [1.1.50] rendering.draw_arc() culling too aggressive

Posted: Tue Dec 28, 2021 9:15 am
by bolderbrush10
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.

Re: [boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally

Posted: Tue Jan 04, 2022 1:00 pm
by boskid
Thanks for the report. Issue is now fixed for 1.1.51.

Re: [boskid][1.1.50] rendering.draw_arc()/draw_circle() culling too aggressive when moving horizontally

Posted: Wed Jan 05, 2022 7:44 am
by bolderbrush10
Much appreciated, thank you!