mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Use sprites instead of polygons (#6725)
Lines.circle is quite expensive and used for some minor effects. This has been changed to use sprites in certain places.
This commit is contained in:
parent
ee3911cceb
commit
2dae8fdef4
4 changed files with 11 additions and 7 deletions
|
|
@ -133,8 +133,8 @@ public class Fx{
|
|||
float x = Tmp.v1.x, y = Tmp.v1.y;
|
||||
float size = 1f;
|
||||
|
||||
stroke(e.fslope() * 2f * size, Pal.accent);
|
||||
Lines.circle(x, y, e.fslope() * 2f * size);
|
||||
color(Pal.accent);
|
||||
Fill.circle(x, y, e.fslope() * 3f * size);
|
||||
|
||||
color(e.color);
|
||||
Fill.circle(x, y, e.fslope() * 1.5f * size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue