Hello,
we have around unique 800 image targets (16MB of data).
I'm using the following code from the example to load the targets from the JSON file:
var targetList = ImageTargetBaseBehaviour.LoadListFromJsonFile("targetsall.json", StorageType.Assets);
foreach (var target in targetList.Where(t => t.IsValid).OfType<ImageTarget>())
{
GameObject Target = new GameObject(target.Name);
Target.transform.localPosition = Vector3.zero;
targetBehaviour = Target.AddComponent<SampleImageTargetBehaviour>();
targetBehaviour.Bind(tracker);
targetBehaviour.SetupWithTarget(target);
GameObject duck03 = Instantiate(Resources.Load("duck03")) as GameObject;
duck03.transform.parent = targetBehaviour.gameObject.transform;
}
It takes around 25 seconds until all 800 targets have been loaded (on my high end development machine).
Is there anything to speed up the loading? Users of our app shouldn't have to wait 30 seconds or more until they can start tracking their markers. Maybe some form of "precompilation" of the targets?
Thanks alot