Slowdown caused by GetTimeZoneData() in Ink module for dialog

Hello,
I am using the Ink addon to do my dialog in Unity.

It works great except when I seem to talk to somebody the first time the FPS of the game drops suddenly before returning to normal.

I profiled the problem and it seems to be caused by the Ink module running the function GetTimeZoneData() (see attached screen shot).

Does anyone have any idea why this is happening and what could be a solution to this ? The quickest way to solve this would be to run the problematic piece of code once before game start but I would like to try and understand more of the problem.

Thanks a lot for your help,

From the call-stack I’d say it does so because something is trying to get the current time (maybe to put it into a string?) And thereby triggers it to initialize the Locale info.

You can probably “pre-heat” it by querying DateTime.now somewhere in your initialization/loading logic in order to pay the cost for that up front.