A question on memory consumption of Data Tables


I’ve been abusing Data Tables lately :slight_smile: A lot of my gameplay comes from Data Tables. So I’m now concerned about how UE4 handles Data Tables in memory: Does it load all the data when the program starts, does it only load what is related to actors spawning into the map (and thus, offloading and reloading data when when we change map) or does it stay on disk with the operating system caching the results ?


From a memory standpoint I can’t imagine it would be a lot of overhead, your table would have to be huge to even amount to half a megabyte of text. I am curious about the overhead for actually ‘getting’ a value out of the table though - does unreal move the contents of the table into an array behind the scenes? It would be nice to know how the data is being represented internally.