How do I improve the frame rate performance when creating objects in my level?
What is the expected result
When starting a level, I use the Create object action to generate all the blank cells and associated word objects. I expect the game to run smoothly at 60fps regardless of the number of objects created, both in the app’s preview and in the browser.
What is the actual result
When I do not create the white boxes and character objects, my game runs at 60fps. However, once I create these objects, the frame rate drops to around 30fps. In levels where I create even more white boxes, the performance further decreases to approximately 15fps. Notably, while the app preview consistently shows 60fps, previewing the game in a browser results in the described lag.
Related screenshots
Performance Display: A screenshot showing the frame rate drop when the objects are created.