⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

Как один сервер на Go держит 2500 бойцов в браузерной драке

habrahabr.ru ·Russian Federation · health
Words
86
Chars
509
AI summary
Yes
Full story

A solo developer is building Brawl Town, a browser-based street brawler inspired by Final Fight and Streets of Rage. The game is online-only: one street, hundreds of players and bots, all fighting each other around the clock. From the start, the project set an engineering goal: measure how many people one process on an ordinary desktop can support if combat is calculated honestly on the server. The current answer is about 2,500 simultaneous fighters on an i7-7700K, with a tick of about 30 ms out of a 50 ms budget.

Я в одиночку делаю Brawl Town — уличную драку в браузере в духе Final Fight и Streets of Rage, только онлайн: одна улица, сотни игроков и ботов, все против всех, круглые сутки. С первого дня у проекта была инженерная цель: сколько людей выдержит один процесс на обычном десктопе, если честно считать бой на сервере. Ответ на сегодня — около 2500 одновременных бойцов на i7-7700K при тике около 30 мс из бюджета 50. Рассказываю, что оказалось узким местом: не алгоритмы, а кэш процессора и трафик. Читать далее

Open article