Server Design Question

If i was to combine a bunch of Resource scripts into one big file, would that make for less lag in my server? I’ve found that i’ve added a few things, and with it came a little lag be it from loading a resource, etc… But if i was to make a bunch of resources into 4-5 files, would that help? or hurt my FiveM FXServer ?

Uhhhhhhhh would probably have little effect as it still needs to load the same shit but give it ago and let us know

Wether you have 50 resources or double everything into 25 resources the same amount of data is still being downloaded on connect.

It’s true that the same amount of data is being download, but take in account that download can be parallel. The http protocol for example states that you can have x amount of parallel download. And thats why websites squash JS and CSS into one file.
More paralell downloads mean greater saturation of the bandwidth.

I don’t know if this applies FiveM, if this is the case then having 25 resources would be faster then 50 download. But that’s a big “if” wether this applies.

1 Like