Data Table Row Handle & Memory

Yes when you spawn/placed a chest, it will load the whole data table.

In some situation level streaming will take care of that but you should see if it possible in your game to have multiple chest on the same area and x100 item per chest might be worrying. (you can calc the memory cost for example take the icon texture size and multi by 100, you will get an approx of the mem size and see if it worth to optimise). There also Reference Viewer that you can check out.

otherwise here some few solution:

  • use of soft ref for your icon texture
  • use of Data Asset instead of Data Table(i havent try this out but usually it won’t load everything until called)
  • proper level streaming
  • max out item per chest or reduce the resolution of your icon
  • (small tip) if you are using it in a widget, don’t forget to set your texture for UI group (it will remove mipmap and reduce it mem size by a bit)

when using soft ref, you will need to manually load the icon texture and add some condition if needed whether it loaded or not. Using the node CancelLatent is pretty useful in widget.

1 Like