Raspberry Pi 4 - TShock Terraria Dedicated Server Setup and Performance
Installing and running a Terraria dedicated server on a Raspberry Pi. Skip to the bottom for timestamps and resources. I'm using "TShock" which is so simple it doesn't require a video, so the majority of this is covering world generation times and performance. The official desktop and mobile servers won't work on a Pi as they require an x86 CPU.
The installation is incredibly quick and simple. It doesn't really need a video. In this video I compare small/large world generation between the Pi and a PC. No shock as to which wins. Then I "play" each level for a while to monitor resource usage.
TShock runs at 200% CPU usage when performing complex tasks. This implies it's only using 2 of the 4 Pi cores available, which means it's never going to overheat. Obviously that means a lot of CPU power is never used which impacts large world generation. Without looking at the code, it's not apparent whether this is due to TShock or the Mono framework. I'd edging towards TShock as the PC version seems to use a few more threads (mine has 12) although not to their fullest. This may be due to hardware limitations as I'm running mechanical drives.
In case it doesn't come through in the video, I hate these games. This one in particular due to its appalling UI. It's a terrible waste of time which could be better spent playing a real game with a story and character development. Or reading a book, if such a thing were possible!
Pi TShock world locations:
- Running as su: '/home/[user]/.local/share/Terraria/Worlds/'
- Running as local user: '/local/share/Terraria/Worlds/'
Windows PC world location:
- c:\users\[username]\Documents\My Games\Terraria\Worlds\
My Equipment / Prerequisites:
- Pi Model 4
-- With 64GB class 10 SD card (U1)
-- Using ethernet.
-- I have the 4GB version. From server performance, the 1GB may have issues.
- I have a small fan on my Pi 4 which I took off my old Pi 3. There's no mount so I just taped it on. it doesn't make a big difference to core temp, but it's better than nothing.
- Raspbian Buster with desktop (10/07/2019)
- Desktop PC
-- i7-5820K, 16GB DDR4, NVIDIA 1060 6GB, mechanical drives.
-- For installing Terraria and testing server.
- Copy of Terraria
-- To join the server once running.
-- Can't recommend it.
- USB memory stick (optional)
-- If you wanted to copy the files from a computer, but you can easily download from the website on a Pi
- TShock server
- That Python temperature script
00:00 - 00:17.... Intro
00:17 - 02:59... Installing server on the pi
02:59 - 03:55... Talking about pi monitoring tools for video
03:55 - 06:12... Generating small world on Pi
06:12 - 07:18... Generating small world on PC
07:18 - 08:53...Generating large world on Pi
08:53 - 09:47... Generating large world on PC
09:47 - 11:00... Summary of world generation times
11:00 - 15:03... Playing a small world
15:03 - end... Playing a large world
|Sensitivity||Normal - Content that is suitable for ages 16 and over|
1 month, 2 weeks ago
4 months, 1 week ago
Warning - This video exceeds your sensitivity preference!
To dismiss this warning and continue to watch the video please click on the button below.
Note - Autoplay has been disabled for this video.