I am using Invoke method to show popup with info in them and information is also sent using Invoke. But right after using a Invoke, there is a sudden noticable lag for a second, after which the popup is shown. This makes the entire User experience very poor. Any idea's on how to solve this issue? Am I missing something here?
Solved! Go to Solution.
Solved by adam.petrone. Go to Solution.
Sorry about the double post. But I should have posted more info about the issue. This happens in standalone, iOS and android.
Am using:
Win 7 64-bit,
Unity3D v4.3.0f4
Scaleform March 03/05/2014 build
Hello sushant_p29,
Please have a look at this post from LightStriker, it may help.
http://forums.autodesk.com/t5/Scaleform-Unity-Development/More-SF-Garbage-generation/td-p/5167671
Ok so that helped quite a bit!! I didn't realise that instantiating new Value() generates this much amount of garbage to be collected. Params sent while using Invoke() also creates new Value() for each parameter passed, so creating a Object Pool for Value class should increase the performance even more!