Game server on a Raspberry Pi

Mashpoe

I have never set up a game server before, but I was wondering if it would be reasonable to use a raspberry pi to host a websocket server and achieve multiplayer for a simple HTML5 game. I know that is it possible, but if I used a Raspberry Pi 2 Model B (with 1 GB of ram) to host my game, would it be fast enough for actual gameplay?

jfriend00

A Raspberry Pi is just a computer. It has a specific amount of compute power like any other server. For you to know whether it would suit your needs as a game computer, you will have to do a whole bunch of work understanding the realtime needs of your server (computation, storage access, memory consumption and networking) and build an understanding of what you need your server to do. All of this is very hard to do theoretically so probably what would be best would be to pick a very cheap server and get your game up and running on it and then start benchmarking and building test cases at load.

After doing a bunch of this benchmarking and running test cases at load, you will identify weak spots in your software. You then fix those weak spots in your software and repeat the process. Then, and only then, will you have some sort of idea whether the hardware you have is limiting you in some way or not or whether your current setup could reach your desired scale.

So, the moral of the story is to pick some convenient and relatively cheap platform to get your server up and running and then start measuring and testing from there. If you have a Raspberry Pi, already know it or just want to learn it, then it's a perfectly fine place to start. If your game goes to high scale and you are scaling up your server, I wouldn't expect you'd be running a high scale service on Raspberry Pi servers, but there's no harm in starting there. It can do a lot, it's just not as much iron as bigger servers when you need bigger iron.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Raspberry Pi Server

From Dev

Lightweight SQL server for Raspberry Pi

From Dev

Create a home server with a Raspberry Pi

From Dev

Ubuntu Server ARM or Ubuntu Server Raspberry Pi?

From Dev

Raspberry pi 2 server does not respond

From Dev

Connect to rails server remotely from raspberry pi

From Dev

Ubuntu Server with Raspberry Pi Motion Camera

From Dev

Ubuntu Server with Raspberry Pi Motion Camera

From Dev

Raspberry Pi webcam server streaming via an IP?

From Dev

Raspberry Pi backup server (Mac & Windows)

From Dev

MedaiWiki server publicly inaccesible on Raspberry Pi

From Dev

Authentication required on raspberry pi web server

From Dev

Django development server on Raspberry Pi refuses connection

From Dev

Really simple HTML server for raspberry pi

From Dev

Raspberry pi 2 server does not respond

From Dev

Raspberry Pi Client to Mac Server Error

From Dev

raspberry pi separate server broadcast audio stream

From Dev

How to set up raspberry Pi as gateway server?

From Dev

Port forwarding to Raspberry Pi web server not working

From Dev

How to build a python server to communicate with a raspberry pi?

From Dev

Connect raspberry pi 4 with ubuntu server to wifi

From Dev

Redistribute modified Ubuntu Server for Raspberry Pi

From Dev

Display fullscreen jpeg on X Server (of Raspberry Pi) using Python 3

From Dev

tcp server c# on windows, tcp client python raspberry pi

From Dev

How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

From Dev

Problem with wireless networking for ubuntu server on a Raspberry pi 4

From Dev

How to start a service on startup on Debian headless server (Raspberry Pi)?

From Dev

Apache server in raspberry PI not visible from outside( public IP)

From Dev

tcp server c# on windows, tcp client python raspberry pi

Related Related

  1. 1

    Raspberry Pi Server

  2. 2

    Lightweight SQL server for Raspberry Pi

  3. 3

    Create a home server with a Raspberry Pi

  4. 4

    Ubuntu Server ARM or Ubuntu Server Raspberry Pi?

  5. 5

    Raspberry pi 2 server does not respond

  6. 6

    Connect to rails server remotely from raspberry pi

  7. 7

    Ubuntu Server with Raspberry Pi Motion Camera

  8. 8

    Ubuntu Server with Raspberry Pi Motion Camera

  9. 9

    Raspberry Pi webcam server streaming via an IP?

  10. 10

    Raspberry Pi backup server (Mac & Windows)

  11. 11

    MedaiWiki server publicly inaccesible on Raspberry Pi

  12. 12

    Authentication required on raspberry pi web server

  13. 13

    Django development server on Raspberry Pi refuses connection

  14. 14

    Really simple HTML server for raspberry pi

  15. 15

    Raspberry pi 2 server does not respond

  16. 16

    Raspberry Pi Client to Mac Server Error

  17. 17

    raspberry pi separate server broadcast audio stream

  18. 18

    How to set up raspberry Pi as gateway server?

  19. 19

    Port forwarding to Raspberry Pi web server not working

  20. 20

    How to build a python server to communicate with a raspberry pi?

  21. 21

    Connect raspberry pi 4 with ubuntu server to wifi

  22. 22

    Redistribute modified Ubuntu Server for Raspberry Pi

  23. 23

    Display fullscreen jpeg on X Server (of Raspberry Pi) using Python 3

  24. 24

    tcp server c# on windows, tcp client python raspberry pi

  25. 25

    How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

  26. 26

    Problem with wireless networking for ubuntu server on a Raspberry pi 4

  27. 27

    How to start a service on startup on Debian headless server (Raspberry Pi)?

  28. 28

    Apache server in raspberry PI not visible from outside( public IP)

  29. 29

    tcp server c# on windows, tcp client python raspberry pi

HotTag

Archive