Game lags depending on overall playercount?

Hi, I wasnt sure where to exactly post this. I have a racing themed game with AI cars that you race with. Now, it never really lagged in the test game. I Added it to my main game, and when it rose to around 200-300 people playing, the AI started to experience slow motion lag due to stress on the servers.

However, at 100 players or less, the AI dont lag much at all, even if you are on a server all by yourself. Im not sure how the overall player count is affecting lag. I Even took a file of the main game, and published it as another game and tested the AI by myself and there was no lag there, but on the main game the AI were having some lag issues, despite it being a file copy.

Do you guys have any ideas what could be the cause? Seems like the more servers, the more lag across them all.

This is the lag difference:

https://i.gyazo.com/66845b12c4ba1dc59212ec1857fa587d.mp4
https://i.gyazo.com/1a5b77def9c8f9cf0e0caa3341a83d8f.mp4

3 Likes

Do you have scripts that modify every player in the game? One server’s performance should not affect another, so I don’t really know what would be happening.

1 Like

This is the correct topic, where else would they put it? I don’t get why you would say that, but then proceed to not help at all.

They are trying to get scripting support, because it most likely is a problem with their scripts.

1 Like

That’s not a scripting support. Let me explain, in scripting support we share script that doesn’t work and ask that where is wrong. I’m sorry if I’m wrong. They close these type topics most of the time.

1 Like

I think humanoids can get laggy when loads of them are in a game especially in a small area.

1 Like

Read their post. They are talking about their AI performance somehow being affected by the amount of players in their game. That is a scripting problem. They did infact script their AI.

There’s no reason to take down a perfectly good post, just because you think that it isn’t scripting support (when it infact is)

1 Like

I mean that we should know his Al script. Maybe there is a script error or smth.
Or we can recommend a new scripting method to prevent the lags.
Maybe script doesn’t matter with lag but we can’t know without getting more details about it I guess.
By the way, do you have an idea why he is having problems with these lags? This looks weird.

1 Like

How would they affect something in a completely different server?

1 Like

No. I thought the OP was talking about 100 players in a server.

1 Like

I think that it’s because Roblox combines “servers” into one virtual cloud machine.

1 Like

No. I Do have adonis admin, not sure if it could be linked at all ? It does have cross server commands capability, not sure if it has something to do with it … im not sure if anyone really knows a fix for this which is fine, ill just continue to look into it and do trail and error to see what the issue is

1 Like

Are you using an API for the AI? If it’s your own, you might be taxing the API server with too many requests, making it a slower game overall.

You can try developing a system where you have multiple hosts for the API to resolve this.

1 Like