jcs Posted February 14, 2014 Share Posted February 14, 2014 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 Quote Link to comment Share on other sites More sharing options...
jcs Posted February 14, 2014 Author Share Posted February 14, 2014 mattdesl pointed out in the github issue that iOS doesn't support webgl and sure enough this is a Canvas renderer issue, not iOS Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted February 14, 2014 Share Posted February 14, 2014 Hello! Thanks for the heads up - should be ok now in the dev branch Quote Link to comment Share on other sites More sharing options...
jcs Posted February 14, 2014 Author Share Posted February 14, 2014 excellent. cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.