Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark max concurrent players #1220

Open
pierd opened this issue Dec 11, 2023 · 5 comments
Open

Benchmark max concurrent players #1220

pierd opened this issue Dec 11, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation topic:performance Performance enhancements, regressions, etc

Comments

@pierd
Copy link
Contributor

pierd commented Dec 11, 2023

It would be nice to have a snapshot of performance on the website or in the book so that everyone knows what can be achieved with Ambient.

I only have that very rough smoke test I did months ago and it didn't even test a real game - it was just to double check if we can handle ~100 concurrent connections. We could start with:

  1. a baseline - an empty project (one created with ambient new).
  2. something that at least has input messages (not only ECS diffs) and maybe some processing on the server (a physics simulation running) - based on third party controller or some other example so that people know what to expect in a closer to real game scenario.

For all cases we want to answer the question how many concurrent connection a single Ambient server can sustain while still running the simulation reliably at 60 FPS.

@pierd pierd added documentation Improvements or additions to documentation topic:performance Performance enhancements, regressions, etc labels Dec 11, 2023
@ten3roberts
Copy link
Contributor

I know @droqen has been working on these benchmarks, specifically for the up and coming wasm runtime improvements

@pierd pierd changed the title Benchmark Benchmark max concurrent players Dec 11, 2023
@pierd
Copy link
Contributor Author

pierd commented Dec 11, 2023

I know @droqen has been working on these benchmarks, specifically for the up and coming wasm runtime improvements

I believe these are different. This issue is more about the size of a game in terms of max concurrent players while @droqen 's benchmarks stress test the client.

Updated the title for clarity.

@droqen
Copy link

droqen commented Dec 11, 2023

After a conversation w @pierd I have an idea for how to tackle this

Basic requirement for a benchmark that would be useful for benchmarking max concurrent players

  • Simulate clientside inputs, so that any # can be run

My idea

  • Boids where each boid is an individual automated client

@itsarjunsinh
Copy link

A related thing would be to state Ambient's optimal cloud VM type: General purpose vs Memory optimised vs Compute optimised. Including some recommended specs.

@pierd
Copy link
Contributor Author

pierd commented Jan 4, 2024

That's highly dependent on the game but I agree that having ballpark numbers from the benchmark would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation topic:performance Performance enhancements, regressions, etc
Projects
None yet
Development

No branches or pull requests

4 participants