It's not the atlas that causes the lag, it is actually the number of animations in a .json file.
I removed all animations but one and exported the .json file. The game had no lag when adding the object.
I then duplicated the same exact animation a couple of times then exported and imported the file and the lag was back.
The animation data is causing a lag, why is this so?
The way I understand it is that the animation data is basically just ' floats' and shouldn't take up to much memory.
Shouldn't only the data for 'ONE' animation be in use and not the data for 'ALL' animations ?
Any Idea what could be done to fix this?