How to replicate large data?

I have instanced mesh component with 5000+ meshes and I want to load their transforms (TArray) to the clients when they connect to the server. How can I do this? Which methods/plugins/other material can help me with it? Thanks!

FFastArraySerializer is generally preferable for large data sets. 5,000+ elements is still extremely large however and will exceed the max single-packet size. Even this type starts emitting warnings around 2,000 elements. You can search for it in the codebase and see the comments regarding how it works.

There are limits. Replication is designed for small, high-frequency packets. It’s not designed for large scale data transfer. If you have a lot of data, you may need to spool up a socket and send the data a more “traditional” way, then handle state syncronisation yourself.

Obviously both solutions are C++ only. Generally when doing something on this scale, you want to find an alternative approach, such as deterministic generation.

1 Like