• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Ross_S · Mar 18, 2013 at 10:38 AM · iosspriteiphonebatchingatlas

Batching to IOS not working ???

So my game 'appears' to be well optimised. In the Unity player the batching appears to be working - there are only 6 or 7 draw calls ... However when i build to iPhone... the batching is simply not working... i'm losing 20 frames per second just for putting 40 quite small sprites on screen. it's an iphone4 and i'm really sure the problem is not in the update loop or anthing. it's the simple act of rendering a few objects that should be batched that is slowing it down. I do create all my own gameObjects in code. This has never been a problem exporting to Android but this is the first time i've gone Unity to IOS and this has just cropped up right at the end.

Any clues Greatly appreciated!

EDIT

here is the output from the IOS built in profiler

iPhone Unity internal profiler stats: cpu-player> min: 22.6 max: 51.0 avg: 25.6

cpu-ogles-drv> min: 1.0 max: 1.9 avg: 1.1

cpu-present> min: 0.8 max: 5.4 avg: 1.5

frametime> min: 26.9 max: 66.9 avg: 30.8

draw-call #> min: 11 max: 11 avg: 11 | batched: 92

tris #> min: 298 max: 302 avg: 300 | batched: 200

verts #> min: 632 max: 640 avg: 637 | batched: 405

player-detail> physx: 0.4 animation: 0.0 culling 0.0 skinning: 0.0 batching: 1.2 render: 7.4 fixed-update-count: 1 .. 3

mono-scripts> update: 15.5 fixedUpdate: 0.0 coroutines: 0.0

mono-memory> used heap: 5312512 allocated heap: 7921664 max number of collections: 1 collection total duration: 20.3

thanks :)

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Graham-Dunnett ♦♦ · Mar 18, 2013 at 11:06 AM 0
Share

What does the built in profiler say?

avatar image Ross_S · Mar 18, 2013 at 11:55 AM 0
Share

Hi Graham, hmm i don't have PRO IOS ... so the profiler isn't connecting... i think... i have UNITY PRO just not the pro ios...

avatar image Fattie · Mar 18, 2013 at 12:13 PM 0
Share

purely FWIW . not to sound like a broken record but if you use 2DToolkit, which is extremely popular for 2D in Unity, it utterly takes care of everything for you. you get "one draw call" implementation no matter what the platform etc. it's pretty hard to beat.

avatar image Graham-Dunnett ♦♦ · Mar 18, 2013 at 12:35 PM 0
Share

I asked what the built-in profiler says, not the Pro-only profiler. :-)

avatar image Ross_S · Mar 18, 2013 at 01:15 PM 0
Share

ah thanks for the tip... hmm, i'm getting the feeling i was wrong about the batching... i've pasted the output from the profiler in an edit above...

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Texture atlases on iphone 3 Answers

Same Sprite in multiple sprite atlases breaks dynamic batching 2 Answers

Is it possible to utilize iphone dynamic batching with "traditional" animated sprite techniques? 1 Answer

Which version of Xcode does Unity 3.5.5f3 support? 1 Answer

TouchPhase.Stationary lags on iOS 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges