Jump to content

SpriteBatch misbehaves on iOS - doesn't respect translations of parent(s)


Recommended Posts

I've been playing with 1.5 and SpriteBatch and using it for particle systems. This is in the context of a side-scrolling-type game, where there is a "root" camera DisplayObjectContainer (DOC) that sets the translation for the POV (inverse of it, actually - when the camera "moves" left, everything visible appears to "move" right etc). the SpriteBatch that holds the particles is a child of the "camera" DOC


everything is working great and performance is quite good (on my laptop I can spawn many tens of thousands of particles before the frame-rates starts to drop; obviously not so much on mobile). 


but I discovered an odd thing. on my iPad mini (1st gen) the particles "stick" with the camera - i.e. they don't move as the camera changes position. this happens in both safari and chrome (but IIRC on iOS they share the javascript engine and maybe more, due to apple's TOS). perhaps it's an issue with the GPU driver. very odd.


this works properly on desktop (linux chrome & firefox) and android (nexus 5 and 7).


I've entered issue #580 on github to track this - cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...