Перейти к содержимому

Profiling a C++ game server with perf and Tracy | Building nanoMMO #8

adrian m.n.

0:00 / 0:00

Profiling a C++ game server with perf and Tracy | Building nanoMMO #8

24 просмотра · 9 дн. назад
adrian m.n.
68 подписчиков
24 просмотра · 9 дн. назад
We benchmark our C++ game server to see how many players it can take, and it falls behind past a thousand. Profiling it under load with perf and Tracy points at the broadcast, which serialised the whole world for each client, so we serialise it once a tick, and the server keeps up with twice the players. This is episode 8 of a series about building an MMORPG from scratch in C++, with the focus on the engineering around the game. Project website: https://nanommo.nenuadrian.com Code: https://github.com/nenuadrian/nanoMMO All episodes:    • Building an MMO Game - A software engineer...   Previous episode:    • raylib 3D animation in C++: Mixamo and glT...   Next episode:    • TCP vs UDP for a game server, under packet...   Chapters: 0:00 Intro 0:40 Last time 1:28 Today 2:16 A benchmark 13:47 Profiling 23:18 Tracy 29:11 The fix 36:52 Measuring again 39:36 Docs 40:10 Wrap-up 40:57 Playing it To host the game server and keep it running all the time, you can use a VPS like the DreamHost one I use (affiliate link): https://click.dreamhost.com/aff_c?off... Music: "Bossa Nova Jazz Piano Summer Cafe Podcast Music" by Denis Pavlov, from Pixabay #cpp #gamedev #mmorpg