static builder for Draw.Text(performance issue) or others polygon

Avatar
  • updated
  • Under Consideration

hi,

I bought the Shapes, and I figure out Draw.Text has a performance issue (draw many times with same font setting)

I write the TextMeshProBuilder.

Builder.Begin();

Builder.Append(text)

Builder.End();

Builder.DrawBatch(); // put this at late update or add to urp render pipeline

maybe u can add it to ur urp pipeline of shapes.

and I hope that u can add static builder for your shapes.

let user update the static builder when he needs.

Reporting a bug? please specify Unity version:
2020.3.3f1
Reporting a bug? please specify Shapes version:
3.2.3
Reporting a bug? please specify Render Pipeline:
URP
Avatar
Freya Holmér
  • Under Consideration

yeah, the TMP drawing is currently very bloated. I'll likely do another pass over its functionality at some point, similar to how I also need to do the same for polylines!