Hey everyone! I'm looking for tips on how to enhance the stability of my UDP server for an FPS game I'm developing. I've noticed some lag issues and I want to make sure it runs smoothly with minimal delays. My server is hosted on AWS, and I'm trying to understand if there are specific settings related to inbound and outbound traffic that I should adjust. Any guidance, especially as a newbie, would be greatly appreciated! Thanks!
4 Answers
You mentioned using a t4g.micro instance, which is great for testing but might struggle under real load. Consider upgrading to something like an m6g.medium. That could give you the performance boost you need depending on how many players you’re expecting.
If you haven't considered it yet, using a service like Proxylity UDP Gateway might be a game-changer. It allows you to run UDP services without traditional servers, so you can focus more on coding your game logic without the hassle of managing networking. Just a thought if you're open to new approaches!
First off, what do you mean by 'stable'? Are you experiencing major packet loss, or is it just that your latency fluctuates a lot? It would help narrow down what to fix. If latency is your main concern, there are definitely ways to address that!
Check out this link for some instance type options: https://aws.amazon.com/ec2/instance-types/g4/
Lol, the term 'udp server' is definitely a bit of a meme in our circles. Just make sure you’re optimizing your settings!
Yeah, I definitely need to reduce latency since the game is lagging quite a bit.