Tips for FPS improvment in server?

Hello.

Anyone can give me some tips how can I boost up the FPS in my FiveM server?
Is that depends in the VPS hardware too?
Scriptly how can I do it?

I think VPS Spec is not relative with client performance.
It might some problems with server resources (high cpu usage, or any else)

I suggest to look resource performance statics with resmon or profiler commands.
(These commands could be used on client console (F8))

resmon shows cpu msec (low msec is better), and with profiler command, you can figure out which part of code takes long.

It might helpful when reach some developers can help with resource optimization :slight_smile:

I have 100 resources on 0.1-0.00ms
and 30 on 0.2-0.4ms
one on 0.20ms. (for testing, I stopped this script and nothing improved in FPS).

Total CPU 1.5.
Average FPS in server is 75-100fps.
I saw servers with 130-110.

With same client hardwares?

Mostly FPS defends on client hardware specs (such as GPU), In-game graphics options, CPU usages.
(I heard some large custom map drops FPS, not sure)

Your CPU time looks good for me,
so if, you’ve tested two servers with same hardwares,
need to figure out In-game stream assets (such as custom map, player skin) drops your FPS.

Alright, hdd_kr is not totally wrong here, but forgot to add that sheer amount of
-add-on cars,
-interiors,
-props,
-scripts can and will impact the client.
VPS Does matter since server has to respond, if it doesn’t then you have a bad luck and timeouts. But just getting the machine started and running doesn’t qualify for the best optimization. You need somewhat managable scripts that doesn’t eat 0.10ms while idle. Optimized Cars, Optimized Interiors, pretty much everything you can. Client also needs somewhat good specs, server provides resources and client has to render them, that can cause FPS loss(Prove me wrong if I’m incorrect here).

1 Like

The server that checked was with 0.90-1ms…
to be honest I also removed all stream folder (cars, skins, weapons, maps) and the fps jumped in 10… not that much.
it might be the vps? my current vps has 4 gb RAM and 4cpu, isn’t that enough ? (70players daily)

No, that wouldn’t be related to client FPS at all.

Merging scripts should help in boosting FPS?

not really, if your combining a bunch of unoptimized scripts together, your just going to end up with one really large unoptimized script, your first step should be to examine resmon and the profiler to find and optimize your scripts.

I have only one script with 0.23ms that I am working on optimize it.
but script with 0.23 can impact the fps and make it so bad?

If you don’t have a good host for server it can make fps low in server because ur server is not gonna run great . I would like someone to prove me wrong in this