Is it safe to send the client a string that is ~3.5 million characters long?

Hello, I am trying to send the client data about the charts page on Roblox. Currently everything works: it get’s the data, it sorts it, it sends it to the client. When testing in Studio, it works with no bugs or errors.

I am just wondering if some clients won’t be able to handle the data and will not receive it.


This post says the max is between 16mb and 32mb: Is there a limit to how much data I can pass to a RemoteEvent all at once?

uhh i think doing that would definitely not be optimized, have you tried sending each individual, experience 1 by 1 and just continuously loading it until everything is loaded

I haven’t tried that but I definetly could

thats how other people usually do it when loading thousands of objects, if youtube loaded every single video to you at the same time it would lag the heck out of your device :sob:. so it does it 1 by 1, but yea u should try that

2 Likes

Okay well I made it 0.25 seconds before sending another chunk of the data. Currently it is split into 29 pieces. But yeah regarding the loaded thing you said I 100% won’t make a frame, name, desc, sponsord, etc… for each item because that would be like 710*29 frames + all of its descendants

well yea, but going back to how others do it, why not just load what youll see, instead of loading every single experience, why not just load what you see, so load maybe 20 experiences, then while the player is scrolling, if it gets within, a certain distance from being scrolled onto, then it can load it in, would that be possible?

1 Like

That’s too much extra work for me :sob: I mean it probably won’t fail so unless when I release the game and people say it fails, I don’t think I need to fix it.

alright then, thanks for taking my feedback

You might be able to compress that data down to a few kilobytes with the zstd compression used in (NEW UPDATE!) An ultra optimized Instance Serializer that can serialize 40,000 Instances and compress it into a 100K+ character string in only 0.4s

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.