Hacker News new | ask | show | jobs
by deejbee 3612 days ago
From what I've experienced and read about, it seems the best approach is not to create/destroy objects at run time since it can be an expensive operation and cause frame rate issues. It's better to hide them and build as many as you can when the app is started up.
1 comments

Yes, object pools are a good solution for elements like bullets in bullet hell games and similar applications.