I developed a tracing game for an organisation using this engine. The game crashes after using it for some time, mainly on changing the layouts frequently.
In debug mode all resource usage(CPU usage, image memory, GPU usage), everything looks good.
When I inspected the game in Safari Web Inspector, It shows that game memory keeps increasing(maximum up to 1.6 GB) by changing the layouts frequently. One of the layouts in my game creates 120 objects on runtime.
I have tested the following things:
1. Removed all big-size images.
2. Kept the layout empty and didn't create any objects on runtime.
Please help me get out of this problem. Thanks