Onesync Infinity, 1024 slots + performance

Hi,

I am in the making of a roleplay community where our expectations would be ~400 or even ~500 players online at the same time in our early stages, with the major possibility that the player count would raise over time. I noticed how FiveM has some performance issues when it comes to large player gatherings on one server at the time and I was wondering how can the script be developed in order to avoid this kind of performance loss and if the Onesync Infinity (1024 slots) would handle satisfyingly the players’ performance desires as this is a huge request.

Another question is what kind of hosting service is needed in order to handle such a desired playerbase without any issues at all? VPS/Dedicated?

I’d like to mention that we chose to make a custom JS framework (no ESX at all). For any questions, leave them below and thank you in advance for any helpful replies that would help me guide the community in the right direction.

If it does, why don’t you report such with trace info/such instead of taking it as a given?

Also, one shouldn’t ever not use ‘Infinity’, even at lower slot counts.

Network replication happens on a dedicated thread pool anyway, scripts and low-level network events are all asynchronous and no lock-step occurs where they block on each other (lots of callback passing however, and a few reader/writer mutexes but there’s barely any contention in common scenarios).

Another bit of a waste, the server provides a fileServer field which can be pointed to an external server containing asset downloads.

1 Like

Huh?

This shouldn’t ever happen at all due to asset prioritization and preloading of collision files.

If this does happen, a repro would help a lot, since the last server with a full LC map loaded (the only comparable-size map) vanished a while ago so some changes might’ve led to this not being prioritized correctly anymore.

In addition, a ‘launcher’ wouldn’t be able to ‘pre-load’ a set of assets into a client cache at all, it’d only be able to modify the user’s game install, which is heavily discouraged and undesired.