Hello Guest

Author Topic: textmeshes and dynamic batching bug?  (Read 3597 times)

Dajuice

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 45
    • View Profile
textmeshes and dynamic batching bug?
« on: March 25, 2013, 06:25:00 pm »
In my game, I set the max chars for a textmesh at 75 and it is batched correctly (and my test was a scene with 2 textmeshes), over that, it cannot be batched, is it a known phenomenon?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: textmeshes and dynamic batching bug?
« Reply #1 on: March 25, 2013, 07:36:32 pm »
Yup. maxchars = 75 = 150 polygons (triangles) - that is quite a bit of mesh data to calculate every time. You're likely to get much better performance with tk2d 1.92, but not so much if you have normals / gradients. Each feature increases size vertex footprint and this determines how it batches.

At some point it becomes more expensive to batch than it is to draw a second batch.