Hello Guest

Author Topic: Getting 3 draw calls per object  (Read 3728 times)

Dwel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Getting 3 draw calls per object
« on: September 07, 2013, 07:38:29 pm »
I'm trying to display a hex grid and I'm running into a huge number of draw calls. For the grid I'm essentially creating a number of hexagons, each being a prefab. The prefab is simply a tk2d sprite with a texture on it and an altered collision to fit the hexagon shape.

Each prefab instance runs for 3 draw calls. If I disable the mesh renderer, it drops to 2 draw calls. When drawing more than one hexagon, all the mesh renderer draw calls are being batched, but not those 2 other draw calls, which are duplicated for each instance.

I have no idea what those 2 draw calls are. Any advice on this?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Getting 3 draw calls per object
« Reply #1 on: September 07, 2013, 07:54:52 pm »
Do you have gizmos turned on in the Game window? Try turning it off...

Dwel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Getting 3 draw calls per object
« Reply #2 on: September 07, 2013, 10:03:10 pm »
Gah! Wow, I feel rather silly now. Many thanks for that!  :-[