freeciv-web icon indicating copy to clipboard operation
freeciv-web copied to clipboard

1000 players support

Open andreasrosdal opened this issue 5 years ago • 8 comments

"Imagine being your own nation in a big world of 1000 players."

This issue is about implementing support for 1000 players in Freeciv-web.

andreasrosdal avatar Mar 30 '19 11:03 andreasrosdal

@cazfi @kvilhaugsvik Is this possible now? Can you help with this?

andreasrosdal avatar Mar 19 '21 11:03 andreasrosdal

You would need a nation for every player, so this requires introducing a lot of new nations.

cazfi avatar Mar 19 '21 11:03 cazfi

New nations could be generated on the fly.

Do the internal data structures in the Freeciv C server support over 1000 players?

andreasrosdal avatar Mar 19 '21 11:03 andreasrosdal

It's 500 + 12 (-> over 256) at the moment, so everything should have 16bit fields already.

Do you still happen to have the formulas I used when estimating memory requirements of a given player count when we last increased it? I don't think I have myself. Some things grow exponentially and for a 500 player game memory requirements are several gigabytes already (I remember it going over 4GB -> 32bit architecture boundary).

cazfi avatar Mar 19 '21 11:03 cazfi

We need support for over 1000 players, to take Freeciv on the web to the next level. Can we do things to reduce or compress memory usage for large games?

There is also this: https://en.m.wikipedia.org/wiki/Zram

andreasrosdal avatar Mar 19 '21 11:03 andreasrosdal

Do you have late-game data about 500 player games to see what is the real-life situation currently?

cazfi avatar Mar 19 '21 11:03 cazfi

500 player server seems to take about 8GB from the first turn, and is unusable slow on my a bit over a year old computer. Given that some components of the memory usage grow exponentially as player count increases, late game with 1000 players would probably require something around 1TB.

cazfi avatar Apr 07 '21 06:04 cazfi

Making a 100 player game work right, for ruleset balance and mechanics, is the more modest goal. There are many issues with so many players on so large a map, for overall game experience, winnability without exhaustion, etc. So, we'll slowly work more toward this modest goal, of getting a ruleset and its mechanics properly functioning well for 100 players ;)

On Tue, Apr 6, 2021 at 11:27 PM Marko Lindqvist @.***> wrote:

500 player server seems to take about 8GB from the first turn, and is unusable slow on my a bit over a year old computer. Given that some components of the memory usage grow exponentially as player count increases, late game with 1000 players would probably require something around 1TB.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/freeciv/freeciv-web/issues/272#issuecomment-814639954, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVSGWBLHMVYVC67RRD3DUDTHP3ONANCNFSM4HCOX4IA .

Lexxie9952 avatar Apr 07 '21 23:04 Lexxie9952