darkerboy Posted January 20, 2018 Share Posted January 20, 2018 Hi, probably I dont fully understand how phaser engine works. For my test I inicialize 10k sprites and than immediately kill them ( sprite.kill() ). Unfortunately I have 15FPS, but I render nothing.. Why I have I have this FPS drop, I need kill sprites and revive it when I need them so I dont need any sprites's update, render, postupdate... functions. The debug plugin says slow around 20ms on preUpload-stage and 20ms postUpdate-stage. Can you someone help me please? Thank you very much Daniel Link to comment Share on other sites More sharing options...
head Posted January 23, 2018 Share Posted January 23, 2018 can you show the code? Link to comment Share on other sites More sharing options...
samid737 Posted January 23, 2018 Share Posted January 23, 2018 try destroy() instead of kill(). Link to comment Share on other sites More sharing options...
Fenopiù Posted January 23, 2018 Share Posted January 23, 2018 If he destroy the sprites he can't revive them anymore. Link to comment Share on other sites More sharing options...
samid737 Posted January 23, 2018 Share Posted January 23, 2018 @Fenopiù you're right, overlooked that part. A code example might help indeed. What about switching to WebGL? Link to comment Share on other sites More sharing options...
Recommended Posts