Hi. The question is possibly simple, but I have not found a clear answer. I’m creating a game with items and equipment. I write most of it in cpp because I know the language, but I don’t know the engine itself that well yet. According to the tutorials, the list of items can be done in a data table. It is super convenient, adding new items is easy, but the question is how the case is with performance.
In the player eq array, for example, store the id of the item and later read the rest of the properties from the datatable. In my experience, anything that requires a “search” in a larger collection runs slower than a hard-coded one. Maybe in the eq array I should keep all the item data (instead of the id itself) that the player has, so that I don’t have to search for it in the table? Maybe the UE has such well-optimized data tables that even searching large sets doesn’t affect performance?
I have also heard of “FDataTableRowHandle”, maybe it helps to get good performance, because it keeps the references to a particular row?
Unfortunately, tutorials often focus on ease of creation, and performance is overlooked. I look forward to advice from the more experienced in game development.