r/programming • • Oct 25 '26

Just finished my multiplayer system in C and turns out we can support 50k players in a single server at 60hz simulation tick

https://youtu.be/imG2Tt_KOj4
995 Upvotes

207 comments sorted by

987

u/pokeybill Oct 25 '26

This is how it starts, but all estimates from simulating at this scale are out the door with that server sizing and entity behavior. The simulation lacks meaningful player/entity interactions and the amount of game state to track and share will grow exponentially. 10k becomes a questionable target very quickly.

343

u/amestrianphilosopher Oct 25 '26

Yeah as soon as you start adding any interesting mechanics that require interactions with other players, especially ones that are time sensitive like combat, it’s cooked

130

u/pokeybill Oct 25 '26

Case in point - Fortnite has both FPS and base-building mechanics. If building is unlimited what happens when a bunch of players are building/destroying assets rapidly in a concentrated area? Anti-cheat will slow everything down and server-side compute is going to waste cycles on more and more compensating calculations as features and players are added.

Never underestimate the potential for player behavior to break your engine and prove every assumption wrong.

-79

u/UnrealHallucinator Oct 25 '26

Anti cheat calculations are done client side and so i feel like it generally shouldn't be a bottleneck since it's done per client, so unless it's super poorly optimised that shouldn't be w problem. Server side anti cheat is "just" verifying checksums etc which is relatively lower compute cost compared to everything else.

104

u/baseballlover723 Oct 25 '26

Anti cheat calculations are done client side

They shouldn't be. You fundamentally can't trust the client, and especially in an anti cheat context. If you did the anti cheat client side, then you'd literally be trusting someone saying: "No, I am not cheating".

21

u/foonek Oct 25 '26

You do both, and it's definitely not just checksums

-22

u/UnrealHallucinator Oct 25 '26

I called it checksums loosely, but I meant general verification.

18

u/zenware Oct 25 '26

Lots of Anti-Cheat software runs client side, some of it even wants to be kernel modules. But other than it being a very true and real industry standard mechanism to mitigate cheating, I agree with you. It’s obviously best to have the server verify whether someone is cheating.

-13

u/UnrealHallucinator Oct 25 '26

Yeah idk why I'm being downvoted for stating the status quo lol. Wcyd.

11

u/LegoClaes Oct 25 '26

Maybe the downvoters didn’t realize you were replying to a comment about Fortnite specifically. I’m not into Fortnite, so you could be correct there - but coming from an mmo dev background, I could see how someone would downvote you for incorrect information. But that’s Reddit, we’re already several comments deep, attention is gone at this point.

2

u/UnrealHallucinator Oct 25 '26

Yeah some mmo anti cheats are different and will incur heavy server side computation. But we were talking about Fortnite lol. Ah well

4

u/zumpiez Oct 26 '26

Fortnite has server-side hit reg, give me a break

→ More replies

1

u/UnrealHallucinator Oct 25 '26

Yeah serverside is final authority, but it makes verifications and is not invovled in the real compute heavy part of anti cheats like vanguard which is process and memory management.

7

u/gmes78 Oct 25 '26

Even games that use client-side anti-cheat still perform a lot of checks server-side. They're simply used for different stuff.

One answers the question "is this input legit?", while the other answers " should the player be able to perform that action?", for example.

3

u/GrandOpener Oct 26 '26

EAC itself is client-side because of the particular things it’s looking for, which is more about things like detecting client modifications than about gameplay calculations. Most important gameplay calculations are done or at least verified server-side, and are not independently verified by EAC. Those calculations are not part of EAC specifically, but it’s a critical part of securing a UE game against cheating.

6

u/Deranged40 Oct 25 '26

Anti cheat calculations are done client side

Anti-cheat that can be trivially bypassed is done client-side. Good anti-cheat (like what Fortnite runs) runs server-side.

1

u/floodyberry Oct 26 '26

isn't server side (the stuff that isn't checking client side anti cheat responses) just statistical analysis? that doesn't do anything about client side modifications, e.g. wallhacks, asset replacement, etc. it also doesn't even need to run during the actual game, it can just be logged and batch processed

-8

u/UnrealHallucinator Oct 25 '26

Wrong. Fortnite uses EAC which runs client side as a kernel module. Confidently wrong is insane.

11

u/Deranged40 Oct 25 '26 edited Oct 25 '26

Let's look at how to implement it. Who better to show us than Epic's official documentation:
https://dev.epicgames.com/docs/epic-online-services/trust-and-safety/anti-cheat-interfaces/anti-cheat-samples

Their documentation clearly outlines a server-side piece as well as a client-side piece.

They demonstrate how to implement Easy Anti-Cheat with two different sample applications:

  • Anti-Cheat Server
  • Anti-Cheat Client

Note: To test Easy Anti-Cheat, you must build and run both of these sample applications.

This was literally the first google result.

So no. Not wrong. Not Confidently wrong. Demonstrably correct.

Congratulations, You just proved that you don't have a fucking clue what you're talking about. What, you saw the thing open on your PC before Fortnite opens and just ignorantly thought "there absolutely can not be more to this than what's running on my PC"?

0

u/UnrealHallucinator Oct 25 '26 edited Oct 25 '26

Lol I clearly mention there are components on both ends. I can't even be mad at you, it's like you're claiming the moon is a planet, it's obviously wrong. EAC client side is a literal kernel module that monitors the memory for multiple important processes. It MUST exist. But the client side has to have the truth somewhere, ie, serverside where the game is hosted.

The best/latest online game cheaters use DMA devices to directly read and modify memory, this is why anticheats like Vanguard will even request ack from various devices connected to the device it's running on so it can confirm there are no DMA devices spoofing as peripherals. Btw Vanguard even patches patchguard (MS claims this is impossible) and has a custom CoW handler - it does other things too but the bottom line is that it's actually quite expensive computationally.

Serverside gameplay analysis is done but it's not doable to analyse every single game, so on a per game basis it's done via telemetry which is somewhat cheaper computation wise. Idk how expensive footage analysis is but I have to assume even with a 1/10 analysis rate and good scheduling on the server you might be able to solve this problem.

0

u/Murky-Relation481 Oct 27 '26

It requires both. You even bolded the parts that say that.

I've worked with client side and server side anti-cheat (I hold a BattleEye signing key for one project) and it's almost always dependent on both ends. You can do a lot client side still, especially in regards to server side tracking to prevent cheats and exploits from running.

-1

u/[deleted] Oct 25 '26

[removed] — view removed comment

1

u/programming-ModTeam Oct 26 '26

Your post or comment was overly uncivil.

2

u/gimpwiz Oct 30 '26

We were barely able to go over 1k simultaneous online players back, eh, 20ish years ago. The hardware is much better now but also people tend to expect more complex interactions too, so it really depends. I think realistically asking for 10k simultaneous is feasible without getting too exotic with it but you need to be really careful with how you do it.

-1

u/zerashk Oct 25 '26

Like… gear lol

19

u/CalmCephalopod Oct 25 '26

Not to mention the ability for players to render it when it’s not a bunch of the same simple geometry being instanced.

15

u/bwainfweeze Oct 25 '26

It’s also really easy for your synthetic load to not behave at all like real clients because the kernel and the ethernet card can only do so many things at once so data shows up more orderly than you intended. All good stress testing tools coordinate a cluster of machines both for this and to have the excess bandwidth to take accurate telemetry.

5

u/ZuP Oct 25 '26

I don’t think the goal here is to have classic multiplayer mechanics. The goal is to figure out what is possible within the new problem space.

Even without interaction, this could be a 3D “pixel paint game” where each player is a “pixel” from a top-down bird’s eye view. Allow players to change their avatar color at will and they can run around to form groups that make shapes on the massive canvas.

Just as an example that isn’t particularly innovative beyond the scale. Maybe there is a technically simple mechanic that could completely transform the experience. All you really need is that one unique hook to make something worth playing.

41

u/AlwaysHopelesslyLost Oct 25 '26

What new problem space? PCs aren't markedly stronger today than they were last year and memory is still expensive as sin.

Being able to write code quickly with LLMs doesn't mean you can suddenly accomplish things that were impossible before.

-9

u/ZuP Oct 25 '26

“Maximizing players on a single server to an extreme” would be the problem space, with these high numbers being the new part. I was referencing the tech improvements, as well, not any AI aspect.

19

u/packet Oct 25 '26

What tech improvements? It's easy to have fast empty ticks. They are also not terribly useful in a game engine. The point is once you add any kind of logic inside the tick you are dramatically increasing its compute consumption.

1

u/iiiinthecomputer Oct 26 '26

Also real networks with latency and packet loss etc.

-36

u/dechichi Oct 25 '26

possible, still worth going for it though imo

9

u/ZuP Oct 25 '26

Brutal downvotes. This is a commendable achievement and an interesting problem space to work in. I would be curious what people would do if you dropped the names for visibility (put an outline on the Player Character so they don’t get lost) and allowed players to pick their colors. There’s emergent gameplay in that direction without any additional mechanics.

23

u/AlwaysHopelesslyLost Oct 25 '26

Downvotes are because the OP is being cocky. They aren't here asking for help. They are here to brag about what they think is an accomplishment when all they did as ask an LLM to add as many movable models to one scene as possible.

1

u/ZuP Oct 25 '26

I couldn’t find that part of the convo, can you link to it?

-1

u/Kooky_Importance_731 Oct 26 '26

Pretty sure he explicitly said that he doesn’t use ai 

2

u/floodyberry Oct 26 '26

where? this is a sample project for his 3d engine, "the ai engine for people who ship", "built for ai coding". he has multiple slop coded example projects for it in his repo

0

u/Kooky_Importance_731 Oct 27 '26

It’s literally in the comments just scroll 

2

u/floodyberry Oct 27 '26

https://www.reddit.com/user/dechichi/comments/

how about you just scroll and find the link to it, because it doesn't appear to exist

176

u/dechichi Oct 25 '26

I've been writing this engine in C since 2024, yes, before AI.

The netcode architecture is ECS based, inspired by this 2017 GDC talk. The server is authoritative, and replicated state is just regular ECS components tagged for the network, with each field quantized (e.g. position at 1 mm). Codegen writes the serializers. Clients send inputs (each packet repeats the last 4 ticks so a lost packet costs nothing), each client predicts its own character and rolls back and re-simulates on corrections, and everyone else is interpolated. The transport layer is QUIC over UDP, but we'll support swapping out for different layers.

Every client receives every player, in three tiers of relevancy:

  • nearest 256 players at 30hz, ~3 bytes per entity update
  • everyone within 64m at 5hz, dead-reckoned on the client
  • everyone else at 1hz, ~7 bits per entity update

The mid and far tiers are encoded once per map tile and shared by every client, so that cost doesn't grow with the number of viewers. The whole server, simulation and networking, runs across all 88 cores.

A couple of stats:

  • Server: aws c8gn.24xlarge (96 vCPU Graviton4), 88 lanes
  • Bots are real connected clients, 12.5k each from 4 load machines
  • Bandwidth per client: 18 KB/s median, 68 KB/s p99
  • Every character is a kinematic character controller with client prediction
  • Server tick is 60hz, ~16 snapshots/s at 50k clients

Scaling is linear up to 40k players on this machine (+0.36 ms of server frame time per 1,000 players). At 50k we saturate the machine and the graph stops being linear (needs a beefier server). Simulation is still 60 Hz, the server just runs two ticks per frame, so updates to players drop from 30/s to ~16/s.

Of course not much happening on this demo but I think supporting Fortnite level gameplay at 10k players is not impossible.

The engine is not open source, but it is available to test, you can read the code for the demo on github.

184

u/-Hi-Reddit Oct 25 '26 edited Oct 25 '26

Every client receives every player, in three tiers of relevancy

None of those tiers are practical for any FPS game where you can see 100m.

I think supporting Fortnite level gameplay at 10k players is not impossible.

Perhaps, but data transfer gets a lot heavier when you start adding gameplay systems. It's not linear.

I'd revise your estimate down to 1,000 and hope for a pleasant surprise, instead of estimating 10,000 and hoping not to be wrong.

23

u/dechichi Oct 25 '26

I prefer to estimate 10k, get frustrated I can't get there, and then figuring out a way to make it work. even if I fail, I might get farther if I had aimed at 1k and stopped there

178

u/-Hi-Reddit Oct 25 '26

Nobody said anything about changing your goals or ambitions, just your estimations.

Your estimations show inexperience. Your ambitions are noble.

6

u/AstraeusGB Oct 25 '26

If the Fortnite map were big enough you could chunk the thousands of players into their own loading zones, they only load for other players at a LoS distance for example. But I guess this would be cheating if you want to support 10000 players in the same area

20

u/-Hi-Reddit Oct 25 '26

A simplified system of 1 chunk per X,000 players doesn't work.

You need to split that chunk into chunks that can 'see' other chunks. So every player will always have the chunk they are in, and the chunks surrounding that chunk loaded, but not the chunks surrounding those.

| A | B | C |

Players in A cannot see players in C. Players in B can see players in both A and C.

The source engine does something like this with occlusion zones.

3

u/AstraeusGB Oct 25 '26

I suppose I wasn't specific enough in what I meant. I wasn't defining the algorithm in proper implementation terms, that's on me.

7

u/-Hi-Reddit Oct 25 '26

I did not know if you had/hadn't considered chunks seeing into other chunks, it was meant as an addition or expansion to your comment, not a correction.

-3

u/stuffeh Oct 25 '26

In games, those are usually called cells or zones.

3

u/-Hi-Reddit Oct 25 '26

Did you read the last line of my comment?

49

u/anengineerandacat Oct 25 '26

Sounded super impressive until the 96 vCPU entered the picture, cool project but damn that's a big server.

Do big scale multiplayer servers really use boxes that large? Always thought it was more about many smaller servers.

3

u/dechichi Oct 25 '26

this machine is actually not that different from what Fortnite uses. From what they shared publicly in 2018 they use a c8gn.8xlarge and run up to 16 Fortnite matches on it.

the size of the dedicated server heavily depends on the game, and a lot of games can just get away with having player hosts so it's basically free for the developer. The scale test is just to see how far the netcode can be pushed, and also to confirm that we are scaling linearly.

22

u/frankster Oct 25 '26

A machine 1/3 the size running 16x as many matches? Doesn't seem that comparable!

7

u/cullenjwebb Oct 25 '26

16 matches but fewer players per match by far.

Tho as others have pointed out we have no idea if this server can scale once the players are actually interacting with typical gameplay.

5

u/anengineerandacat Oct 25 '26

Yeah, I would be curious to see the scale on a lower end piece of hardware; ECS services operate very well when you have a lot of CPU to throw at it but like let's assume 16 vCPU or 32 vCPU which is a bit more of a "regular" machine (at least to what I am used to seeing in production).

Also a proper game stress test, entities moving around not-colliding isn't really meaningful.

Real games have simulated physics, rollback support, gameplay systems (shooting, AoE, etc.) which can really impact performance and lower your stated "peak" pretty significantly.

Just some thoughts, not here to poo poo on someone's project.

0

u/Thorlius Oct 25 '26

In 2018 they shared they were using 8th Gen instance sizes that went into preview in 2023 and GA in 2025 (and didn't use Graviton chips - the 'g' types - until 2026)?

I guess you mean they were using 8xl sizes and you're using the current gen versions of that?

-12

u/AstraeusGB Oct 25 '26

Most modern game servers aren't really doing a whole lot outside of coordinate polling and actively updating player status entries in a cache, so they run on tiny footprints and can be scaled out as needed

15

u/unicodemonkey Oct 25 '26

A modern server can calculate lines-of-sight between players in order to e.g. prevent wallhacks.

13

u/seanshoots Oct 25 '26

That's one beefy server right there. At $5.688/hr, what's the cost per player? ~$0.01/hr per 100 players @ 50k? Or ~$0.01/hr per 20 players @ 10k?

7

u/MatthewBetts Oct 25 '26

Yeah I had to go look it up too as that is one expensive beefy machine. Over $4k a month is quite a price tag

5

u/yawara25 Oct 25 '26

But you've also sold enough copies of your game that there are 50k simultaneous players. 4k is a drop in the bucket.

7

u/Iggyhopper Oct 25 '26

World of Warcraft is highly successful and still it doesnt have that many players in one realm.

Logistically speaking I dont think supporting 50k players in one instance is a good use of time.

Statistically speaking there has to be a point at which you never see a player for the entirety of the match because they spawn on the other side of the map, therefore there's no need to have that many players in the first place.

1

u/Contrite17 Oct 26 '26

I mean I can see the appeal for something like Eve where huge scale is legitimately part of the game selling point. Though Eve doesn't manage anything close to that without huge concessions to tick rate with time dilatation.

1

u/DoSomeStrangeThings Oct 26 '26

Thosenproject usually target to beat eve online in its capability to host large battles.

In last few months I've seen at least three of "new mmos" trying to create architecture that can support 10k-20k players in one location in "real time" (at least with no dilation.

Which is honestly a noble cause, as those 8k players battles in eve are miserable for everyone involved

1

u/MatthewBetts Oct 25 '26

That is very true, my head is in the indie dev mindset currently and it's a lot of money to me right now!

1

u/dechichi Oct 25 '26

that's not too different from the machines Fortnite use to run their matches, you just go and run several matches per server. and of course the engine supports player hosts for small matches so it's basically free for the developer.

14

u/ProudToBeAKraut Oct 25 '26

only position updates? that is like nothing... cheapest operation and you can even minimize that

wait till you have everyone attacking everything, with area damage etc, throw in buff timers, people switching their equipment / update apperance, people inspecting inventory off others

Your bandwidth is also super high, not sure how dense you calculated the era about 1 player but remember that old games had to run on 56k and less baud.

Also not sure the use case but you dont want 50k player in one real shard/zone/region at once anyway - thats just chaos.

Instead of working like a 1990 server where you all do it in a loop or something (and at 60hz which is insanly high nobody needs that) - you should present a could multi shard/instance/seemless crossover architecture that can endlessly scale on hardware and software level.

11

u/NamerNotLiteral Oct 25 '26

OP saying the same famous last words the devs on every MMO have said.

8

u/wannabestraight Oct 25 '26

Question is, what are your players currently transmitting?

Because transmitting position etc for an entity is very feasible, but Fortnite does a bit more than that.

And that extra is data, which doesnt scale.

And like, I guess a tecnical possibility exists to pull that off, but making it work in practice is a completely different kinda beast.

Also, optimization techniques are there for a reason, so spending gigantic effor to make 10k players in a Fortnite map feasible from a networking perspective is one task, but then actually having 10k people shooting around on a map... That's a lot of shooting

6

u/sojuz151 Oct 25 '26

Clients send inputs (each packet repeats the last 4 ticks so a lost packet costs nothing), each client predicts its own character and rolls back and re-simulates on corrections, and everyone else is interpolated. 

This ill explode into an incoherent mess of wierd interaction if characters can do anything more than shoot hitscans. I am making decisions based on some wierd picture of the world than never existing 

6

u/jevring Oct 25 '26

I was thinking that this might be an accomplishment until I saw the size of the server. It might still be, but using a server like that really takes all bragging rights out of anything.

10

u/mallardtheduck Oct 25 '26

Every client receives every player

That's a choice I suppose, but I thought modern multiplayer servers tried to avoid giving the client any information about things the player can't "see" (or otherwise know about within the game) to make cheating harder?

3

u/Primary_Ads Oct 25 '26

ECS based net code

why? feels like a very dated choice

5

u/ReversedGif Oct 26 '26

What would be the modern choice?

8

u/MammothPhilosophy192 Oct 25 '26

I've been writing this engine in C since 2024, yes, before AI.

what are you talking about? people used ai to code 2 years ago.

also your git as claude.md.

this whole thing stinks ai

7

u/onFilm Oct 25 '26

Not sure why it matters if it was "before or after AI", but 50k at 60hz is very impressive!

78

u/lalaland4711 Oct 25 '26

Nowadays it's reasonable to assume that "Look at what I made" actually means "Look at what AI did when I asked it".

-25

u/onFilm Oct 25 '26

I personally couldn't care if they used one tool or the other. The work speaks for itself, and most often if someone used only AI to create something, then it's not going to be that impressive in itself.

32

u/Barkalow Oct 25 '26

That's what they're saying though, doing this without or pre-AI is a more impressive feat that is indicative of their skill.

0

u/onFilm Oct 25 '26

That's fair!

-15

u/OffbeatDrizzle Oct 25 '26

ain't nobody got time to make their own MMO on the side

AI has empowered small teams / solo devs massively

also, we don't go around harping on everyone because they didn't create their program by hand in binary. how is this any different?

2

u/underisk Oct 25 '26

How many successful indie games used generative AI in development? How does that number compare to the amount of people using generative AI to develop indie games?

2

u/MatthewMob Oct 25 '26

People absolutely do have time and have made even more impressive side projects before AI. 

Were you born in 2023 so don't know reality before then? Are you 3 years old? 

-1

u/OffbeatDrizzle Oct 25 '26

yes, why are you talking to a 3 year old? fucking weirdo

2

u/MatthewMob Oct 26 '26

The 3 year old take is saying AI is needed for anything. It is a productivity booster, people were capable of and were working on these same kinds of hobby projects long before '23.

1

u/OffbeatDrizzle Oct 27 '26

I never said it was needed. if you actually read my comment, I said that it empowered devs to effectively do more work. the vast majority of people don't have time to program their own MMO on the side. I don't even disagree with the original comment I was replying to, or you for that matter - if someone wants to show off their programming skills then good for them, but the reality is that AI is doing to high level languages what high level languages did to assembly

→ More replies

11

u/lalaland4711 Oct 25 '26 edited Oct 26 '26

Well, it depends what it is. Money communities have been swamped with people who have built a budget tool that's supposedly super amazing, and try to get feedback or even customers. Then it turns out that they just vibe coded it, and that's why it has quirks.

The forum may be full of people who would be interested in a high quality budget tool, but every single one of those people are equally able to write a prompt, so the poster was not adding any value. The poster just wasted everyone's time, since the shiny surface of the tool hides the fact that the prompter is not actually an expert in financial tools, so every single person trying the tool just wasted their time.

Now, I agree this doesn't apply to this post, since 50k players with 60hz simulation tick is a technical feat on its own.

But OP links to what appears to be a commercial licensing idea for the engine, where slogans go past saying "AI" multiple times. And the demo has AGENTS files. So… now that I know the overall architecture, and the performance numbers I should get, I'm not sure how cheap a third party would have to be, with great support and other terms, for me to not just vibe code it myself. Especially since then I can hard code decisions for my product, potentially unlocking a better fit, instead of licensing a general solution.

There's also the problem that the code base is not even C++, but C. Like… seriously?

Some tech specs and ability to "book a demo"? Not sure this business model has a future.

But… uh… yeah thumbs up on what could have been a tweet: "achieved 50k players at 60Hz on my engine".

1

u/frankster Oct 25 '26

You're right but it's a great rule of thumb!

-2

u/OffbeatDrizzle Oct 25 '26

I love how angry everybody is at this comment. AI could cure cancer and everyone would still be mad

11

u/Royal-Discount1214 Oct 25 '26

With the amount of people banning AI it matters a lot

-2

u/onFilm Oct 25 '26

Sorry but I have no idea what this means. Banning AI from what?

10

u/glehkol Oct 25 '26

Banning posting of AI coded projects

3

u/onFilm Oct 25 '26

Ah gotcha.

0

u/Royal-Discount1214 Oct 25 '26

Sorry, my fault. There is people who simply think you should not use AI to write code nor do graphic content.

Take a look at posts like this one:
https://www.reddit.com/r/godot/comments/1x7v22g/how_many_of_you_actually_use_aiassisted_code_in/

> But I don't use it in my hobby projects to generate code

> 4 years dev, no AI. Full time

> Professional developer, i.e. I earn a living wage. No Ai in my own work

You can search more post and find people asking the whole sub to ban any kind of submissions where AI was used.

1

u/DoSomeStrangeThings Oct 26 '26

No offense, but you base base you assumptions on loud minority and bias. There almost a 50/50 split in you post with people who use and who don't use AI.

Even than it not really a good representation. People who have stronger opinions (on both sides) are more likely to speak up and reddit is like the definition of loud minority

1

u/Royal-Discount1214 Oct 26 '26

Do you disagree that there is people who are going to hate your post if they see it uses AI?

1

u/DoSomeStrangeThings Oct 26 '26

There will be some. As well as there would be if I used asset store to get assets. Even engine used in development is point of contemption for some.

Outside of games development many people could be pissed by my nationality, political beliefs, orientation and whatever else people can get mad about.

Should I care about all those too? No I wouldn't. The fact that some random says some stupid shit on internet doesn't mean I need to listen to them.

I could been more receptive to such comments, but we do utilize AI to a great success at my workplace. So people who say it can't be used are either don't know what they are talking about or have an agenda

0

u/Royal-Discount1214 Oct 26 '26

> There will be some.

;)!

1

u/DoSomeStrangeThings Oct 26 '26

And? You point sound like one of attention seeking teenager.

"OH no some people on internet will think I am uncool. Therefore, I shouldn't do this, so a bunch or randoms think better of me(they won't)"

→ More replies

-2

u/onFilm Oct 25 '26

Ah, so silly. Brings me back to the early days of when people were throwing a hissy fit towards Photoshop and digital photography.

1

u/Royal-Discount1214 Oct 25 '26

There are a huge amount of example around. Carpenters who still use non-electrical tools only. Painters who only use their own made pigments, they're probably doing it for historic purposes though.

Not going to argue in favor or against AI, but there is a loooot of people against AI usage, and some of them tried it and found it was not usefull.

2

u/onFilm Oct 25 '26

Well put. To each their own.

-5

u/[deleted] Oct 25 '26

[removed] — view removed comment

5

u/Royal-Discount1214 Oct 25 '26

> ah yes, did you know that 90% of statistics are made up?

Dude, saying "a lot of people" is not an statistics, wtf...

> skill issue

Not arguing against or in favor of AI, just discussing why is fine that OP added the little disclaimer in the post.

1

u/programming-ModTeam Oct 26 '26

Your post or comment was overly uncivil.

-1

u/turudd Oct 26 '26

Those people are fucking dumb… the cats out of the bag now, it ain’t going back in

-8

u/ciaramicola Oct 25 '26

Do someone really care if the server code is written with AI assistance tho? Tought the hate was towards art and, at most, mechanics

2

u/Royal-Discount1214 Oct 25 '26 edited Oct 25 '26

Go take a look at the Godot subreddit. There is a lot of blome towards AI-coded games. There is even people asking to ban those posts. So yes, a lot of people seems to care.

as an example look at this post => https://www.reddit.com/r/godot/comments/1x7v22g/how_many_of_you_actually_use_aiassisted_code_in/

1

u/OffbeatDrizzle Oct 25 '26

a lot of people

the evidence? some reddit post with 29 comments on it...

5

u/Royal-Discount1214 Oct 25 '26

Dude, don't be like that... of course I'm showing just one post. What where you expecting?, a paper with an analysis of the last 2 years of reddit?

If you want more evidence, I can help you search for it, you should ask first, anyway, you can google search for "AI" on the godot subreddit, you will find plenty.

1

u/OffbeatDrizzle Oct 25 '26

there's also a lot of people that just don't care whether AI was used or not. I would argue that the only people that do are ones who are worried their skills will be usurped, when in reality every developer should be using it as a tool to boost / enhance their work

2

u/Royal-Discount1214 Oct 25 '26

Sure, I agree with you on that. but going back to my first message, If I were OP, I would also add an "AI Disclamier" on my post to avoid AI Haters. That's all.

1

u/sopunny Oct 25 '26

Of course, those numbers, like the no-AI claim, are all just talk

2

u/onFilm Oct 25 '26

I mean, they at least detailed it in their comment. The title is a little click-baity, but it's not as if they were deceiving us in their description.

1

u/floodyberry Oct 26 '26

he didn't say no ai, he conveniently said he started "before ai". it appears to be the latest in a series of slop examples for his slop engine, "the ai engine for people who ship", "built for ai coding"

1

u/beanshorts Oct 25 '26

That is clever. Assuming everybody piles into a circle 64m in diameter, you’re sending how much traffic per second?

Also, how do you manage three bytes per closest players? Do you maintain a mapping of player id to shorthand id or something?

1

u/Alborak2 Oct 25 '26

Are you running with DPDK? Or IO_Uring? Kernel transitions are ungodly expensive at high request rates.

For something kind of similar, we run ~10k clients, ~200k requests / sec and ~300us per request latency through to storage on what amounts to something similar to a c5.24xlarge. Our version that run on graviton v4 is like... 5x as capable. That C8g should do what you're trying to do with the right SW arch.

77

u/ducksaws Oct 25 '26

Do you have any situations where interpolated player locations aren't acceptable? IE, someone can try to attack another player who is further than 64m away

7

u/dechichi Oct 25 '26

I think several games would have this situation yeah, for instance snipers in a shooter game, throwing a grenade, etc.

the engine supports game entities overriding relevancy, so they can say "hey I'm far away but I want everyone up to 600m to see me" for instance.

1

u/zenware Oct 25 '26

I was actually wondering about this too, I think I saw a comment where you mentioned quantized locations. That will also mess with any kind of competitive precision shooter as far as I’m aware. For instance I think it would be a complete non-starter in a game like CounterStrike or even Overwatch.

1

u/Murky-Relation481 Oct 27 '26

Arma enters the chat. The problems get hard when you need to know how things are happening kilometers away.

48

u/SoilMassive6850 Oct 25 '26

How does this end up performing when you need to start doing entity interactions, raycasts, more complex physics and actual gameplay mechanics? I'll believe you if you claim to have the time budget for it in a client authoritative model, but with any heavier logic? I don't buy it.

-21

u/dechichi Oct 25 '26

I would have to build an equivalent demo and test this, which I am, just takes way longer than a "bunch of players running demo" :)

72

u/SoilMassive6850 Oct 25 '26

So your demo is that the server can be fast if it does nothing a game server should do.

2

u/Murky-Relation481 Oct 27 '26

My UDP server can accept 50k connections!

8

u/Royal-Discount1214 Oct 25 '26

What is the logic in your server?

I know little about this, but, my main concern would keeping the logic on the server to avoid cheating and being able to process it at low costs. What are your thoughts about this?

6

u/dechichi Oct 25 '26

the logic runs 100% on the server (and the client, via client prediction). clients only send input, server simulates the game, send states back to clients. if a client state doesn't match the server, the client runs a reconciliation loop, if they keep trying to cheat they are just kicked out. in any case, the server always hold the true state of the world which is built from client input only.

18

u/sojuz151 Oct 25 '26

And what kind of lag compensation are you using and what anti cheating system?

4

u/dechichi Oct 25 '26

no anti cheating system yet, the netcode is still in development. we do have optional lag compensation, but it's not running on this demo as it's mostly used to validate shots

41

u/sojuz151 Oct 25 '26

So what does your server do?

It sounds like a glorified packet router.

-1

u/dechichi Oct 25 '26

not even close. it's a real game server running the engine, it receives only client input, simulates it forward, handles relevancy and delta updates.

the server only receives player input, and every tick it runs the character controller for all 50k players, the same simulation clients predict with. clients never send positions, so a client can't teleport or speed hack, it can only say which way it wants to move. if there is a mismatch clients run a reconciliation loop (and in any case the server state is protected).

for every client it works out who's relevant (nearest 256, 64m band, everyone else), builds a delta snapshot against what that client last acknowledged. plus 50k encrypted QUIC connections. a packet router forwards bytes, this one owns the game state.

the demo code is on github if you want to see how it works

25

u/SoilMassive6850 Oct 25 '26

What actual game logic and mechanics can it actually handle over just moving around entities. A moving character is hardly a game.

-28

u/dechichi Oct 25 '26

anything, it's an engine, the game project writes the code, we provide the API to give the features the game needs (in this case netcode).

the demo code is on github, you can take a look at it yourself, I also have several other demos in the engine.

19

u/zsxzo Oct 25 '26

The link you provided is your Twitter, not GitHub

210

u/projexion_reflexion Oct 25 '26

They said making a high performance multiplayer open world would be hard, but it's real easy if you leave out the world! 

4

u/peterquest Oct 26 '26

massively multiplayer online walking simulator

2

u/T0m1s Oct 29 '26

Worth mentioning Planetside, an MMOFPS.

6

u/Old_County5271 Oct 26 '26

Is the world a big deal? unless there's an event, worlds usually are pretty static, the client can just render everything by knowing its position, now a list of what each player is wearing, that's a few bytes per player of data that has to be transmitted.

I was playing PSO and I recently read that each player doesn't even get the same positioning of the enemies, I've played this game for 20 years and even such a thing as enemy positioning can be hidden away!

13

u/IDatedSuccubi Oct 26 '26

They mean the actual game, characters, quests etc

-7

u/the_bighi Oct 26 '26

I don’t know why you’re being downvoted. The world is indeed handled by the client, not the server.

13

u/naughty Oct 26 '26

Highly depends on what you mean by world. For example if the player tries to walk through a static wall, the server needs to run the collision and deny the move (and do wall sliding etc). You can't trust clients at all and have to validate everything so the world is precisely what the server is in charge of.

1

u/ziplock9000 Oct 29 '26

You're completely wrong. Server authoritative is how only games have been made for 30+ years.

1

u/Chaosvex Oct 29 '26

Not entirely true - plenty of games out there give the client a surprising amount of leeway when it comes to movement.

19

u/pabloe168 Oct 25 '26

2 questions:

What about players moving faster?
What about latency on different players?

6

u/xesttub Oct 25 '26

The only multiplayer game I’ve seen where people all pile into a single ‘shard’ and all need to know each others locations like this is Eve online. And they coincidentally slow down game ticks when this happens

23

u/netheit Oct 25 '26

makes sense. there is literally nothing to render

14

u/Shaky_Balance Oct 25 '26

Rendering is typically done on the client, not the server. Basically the server is a central computer that takes in what players are doing and calculates where everyone is, how much health they have, etc and sends the results to the clients (the computers each player is playing on). The clients do all the fancy graphics rendering and have a bit of extra logic to guess at what is happening in between updates from the server so that other players look smooth. This demo is only able to do 50k players because it is doing less things than most games, but rendering isn’t one of those things.

4

u/mr_birkenblatt Oct 25 '26

60Hz? Everybody's computer is in the same room?

4

u/pyabo Oct 25 '26

My Massively Multiplayer Online Forklift Simulator is finally feasible! :D

3

u/smallstepforman Oct 25 '26

I can do 80'000 NPC with no physics and a terrain engine, but with physics, collision avoidance, buildings, grass, etc it drops down to 40'000.

https://youtu.be/gLoVFvoXDew?si=E-2LTWiqqbuJPmvT

2

u/peatear_gryphon Oct 25 '26

Better than what I can do, which is nothing!

2

u/Skizm Oct 25 '26

No. Valve told me 10 players at 64 tick is impossible.

3

u/Redd411 Oct 25 '26

cool stuff!! was always interested in multiplayer/netcode ever since carmack/quake days. I like your target goals even if ambitious from technical standpoint, though lately I've been thinking about it more as game design problem. How do you design a game that makes even 10k players in same area something that still playable and not become visual soup.

for all the snarky redditors.. backup your criticism.. post link to your github.. lets see your superior work.. thought so

2

u/Vova_xX Oct 25 '26

I could see it in the form of an MMO grand strategy game, something like OpenFront.io or Hearts of Iron combined with WoW

1

u/Endeeeeeeeee Oct 25 '26

Would be cool for
something like eve online. You can filter out visual information

1

u/SteelBalls1867 Oct 25 '26

96 vcpu over 5 dollars an hour?? I can support 50k players with only 256 30hz updates on my raspberry pi

1

u/tenix Oct 25 '26

What's your bandwidth needed for this?

1

u/Intelligent_Thing_32 Oct 25 '26

A “single server” isn’t a metric.

1

u/lqstuart Oct 26 '26

So you wrote a web server

1

u/sturmeh Oct 26 '26

What's going on here, are they all trying to stay on a giant treadmill?

How much rotational data is being tracked? What concessions are being made?

1

u/DonJuanDoja Oct 26 '26

Why tho? The more people you put in one place the worse things get, always.

1

u/kova98k Oct 26 '26

i bet you could crank it up to 100k if you remove the players too

1

u/MeBadNeedMoneyNow Oct 27 '26

Damn, you're getting skewered for showing your project. Best of luck.

1

u/P-39_Airacobra Oct 27 '26

This reminds me of the “benchmarks” that are just trivial toy programs

1

u/GniLudio Oct 27 '26

Until one starts cheating and you start using 99% processing time to detect them...

1

u/Relevant-Guarantee25 Oct 28 '26

ok now simulate people from Africa, Europe, Russia, etc space via satellite playing all at the same time and see if you get desync issues or other fun things the problem is your bots connected are all from the same region with great internet also the issue where a players computr cant handle seeing that many people on screen + adding game world mechanics + game objects on top of that that all need to sync

1

u/Luann1497 Oct 30 '26

50k at 60hz in C is no joke. Curious what your memory footprint looks like during peak load.

1

u/mistattwiligjt Oct 30 '26

I needed that laugh.

1

u/burritoads Oct 25 '26

I think your Claude forgot to make the map too? Usually there is a game with the multiplayer stuff

-3

u/Ghi102 Oct 25 '26

Isn't 60hz basically faster than the ping of most players? And probably bigger than some random fluctuations for players with bad internet. At least, I rarely get better than 20ms ping. Is that an issue? 

1

u/EdenStrife Oct 25 '26

Ping an hz are two different things. Hz is the tickrate of the server, which is how often it updates its internal state. Ping is the time between you sending data and receiving a response from the server. They have no relation to eachother.

2

u/Ghi102 Oct 25 '26

Tickrate is how the client stays in sync with the client, right? So the client state is synced every 16ms. Suppose my ping varies more than 16ms from one update to the other, won't I get out of order updates? I guess technically 8ms of variance could cause that too (which seems plausible IMO). 

Maybe I am just thinking that's an issue when it might not be in reality. 

3

u/EdenStrife Oct 25 '26

If a client doesn’t get info from the server for let’s say half a second then the client will just use local prediction and run their own simulation until they get an update from the server at which point the client will roll-back and resimulate from there.

How long packets take to arrive at the client does matter as there is more room for getting out of sync with the simulation and therefore more roll-backs and corrections. And you can think you hit someone in your simulation but actually they were somewhere else on the servers simulation so you missed, and they then don’t take damage.

Also if updates arrive out of order your simulation will just use the newest one if that info is in the packet but considering we are getting 60 updates a second even if not this should very rarely be an issue.

Edit: seems like this server sends the last 4 updates in each packet so it should be really rare that there are ever dropped inputs or sequence issues.

-1

u/bwainfweeze Oct 25 '26

You’re not familiar with Shannon then.

-1

u/Legitimate_Author513 18d ago

A move data need 8bits sync to other people on scene, corresponding to a 50KB/s bandwidth when a people produce a move. You need a 20Gbps network support to ensure everyone’s moving . In fact , all MMO game will use AOI skill to make it happen on your screen

5

u/[deleted] Oct 25 '26

[removed] — view removed comment

9

u/dechichi Oct 25 '26

this demo is running in 2020 they have to practice social distancing

1

u/faajzor Oct 25 '26

what a great response 😂😂

7

u/programming-ModTeam Oct 25 '26

No content written mostly by an LLM. If you don't want to write it, we don't want to read it.

-1

u/Embarrassed-Rise-685 Oct 25 '26

I was honest to god baked saw what looked like a group of rags impersonating MJ dancemoves. Didn’t know I have to be a karma farmer for that. I usually just burn my accounts after every couple years

10

u/tj-horner Oct 25 '26 edited Oct 25 '26

I’m getting really tired of these LLM comments pretending to be sincere human beings. What is even the endgame here? Get a bunch of karma and sell the account?

P.S. to whoever is operating these: you’re going to need to do more than just make it write in all lowercase if you want it believable.

5

u/programming-ModTeam Oct 25 '26

No content written mostly by an LLM. If you don't want to write it, we don't want to read it.