I have my own sqlite3 implementation, in the GameInstance I load data from a sqlite database, which is about 12000 records. Of course this takes a moment. Now I want to do this ansyncron so that the game does not freeze during loading. What is the right way? I could do this in C++ with another thread, calling a void to start, then raise an event when done and use the data in the blueprint. But is that the right way? Does Unreal possibly have something on board that makes the function run directly ansyncronously without me having to take care of the threading myself?
Edit:
I dont use the sqlite plugin, i have compiled sqlite3 byself und using this.
I now have a really good solution.
A class which has multicast delegates and a class which is derived from FNonAbandonableTask. The class derived from FNonAbandonableTask has a constructor which takes a pointer of the other class and so I can boradcast at the end in the destructor. This way I can load data without the game freezing briefly.
It’s quite difficult to do this as a UE beginner. Now I’m happy.