NotSteve Posted February 28, 2014 Share Posted February 28, 2014 Hi, I'm trying to make a game that's basically a much more simplified version of terraria but due to the amount of sprites I have, it's impacting the FPS pretty badly. I was wondering if there's some way to have lots of sprites while still keeping a high FPS. Link to comment Share on other sites More sharing options...
rich Posted February 28, 2014 Share Posted February 28, 2014 Rendering performance has improved a lot for the next version, and you've also got access to Pixi's new SpriteBatch feature as well. So you can either hang tight for a couple of weeks for official release, or test it out now in the 1.2 branch. Beyond that it's common sense really re: speed - re-use textures where possible, kill off-screen or culled sprites, pool your objects, etc. NotSteve 1 Link to comment Share on other sites More sharing options...
NotSteve Posted February 28, 2014 Author Share Posted February 28, 2014 Ok, Thanks! Link to comment Share on other sites More sharing options...
Magnifisite Posted February 28, 2014 Share Posted February 28, 2014 TaserNinja are you sure that it is only the amount of sprites you are rendering on the screen or is it something else (for instance looping over and over again over all the sprites)? Link to comment Share on other sites More sharing options...
NotSteve Posted March 3, 2014 Author Share Posted March 3, 2014 Yeah, I actually found out I was doing something wrong. I was creating about 100x too many sprites as I put one too many loops Link to comment Share on other sites More sharing options...
Recommended Posts