CA
  
You are currently viewing the Canada version of the site.
Would you like to switch to your local site?
13 MIN READ TIME

LATENCY.GG

Lag is killing games

Tim Armstrong shows off Latency.GG, an open-source global internet measurement system for reducing lag and jitter in multiplayer games.

Part Two!

Did you miss part one? See page 64 to get hold of it

OUR EXPERT Tim Armstrong is a former lead engineer turned developer advocate specialising in networking, software development and security.

QUICK TIP

If you want to get into game development for Linux then Unity is a great place to start. You don’t even need to know how to code!

Latency is the biggest problem affecting online games today, from the biggest AAA titles to the smallest of indie games. A problem is that most games programmers, while being experts at graphics and physics programming, know comparatively little about the internet and the black-box that’s commonly referred to as “net code”. This, in turn, leads to poorly optimised game servers that are incredibly susceptible to fluctuations in latency, being deployed on hosting providers that oversell the quality of their networks while vastly under-delivering.

In a 2021 study completed by Plaintextnerds on behalf of Gameye (a provider-agnostic managed game hosting solution), it was discovered that seven of the 11 hosting providers included in the study (including one owned by a games publisher) suffered from jitter so extreme that it hit the upper limit of the test at more than one second of peak latency. Which, needless to say, would result in a terrible online gaming experience.

Jitter and latency

So how do you go about fixing this? First, you need to understand a few fundamentals about the sources of jitter and latency. You’ll probably have read somewhere that the primary root cause of latency is distance, and while that statement is true, it’s also misleading because they aren’t talking about physical distance not so much as digital distance.

For example, if the game you’re playing is hosted in London and you live in Edinburgh then based on the distance you’d expect a latency of 1-2msec, but that’s not even close to the 15-30msec you’ll actually see. So what’s going on here?

Depending on which ISP, it could be caused by the ISP’s poorly managed network of daisy-chained pointsof-presence, or because your traffic goes on a brief holiday to the Netherlands before London (as is the case for clients of Virgin Media at the time of writing).

Rather than being a linear structure, the internet is a complicated, ever-changing web of “transit” (ISP A allows traffic from ISP B to cross its network to get to ISP C) and “peering” (ISP A and ISP B agree not to charge each other for traffic from each other’s clients) connections between routers that dynamically update paths based on everything from avoiding intermittent faults (such as a power outage) to contract negotiations between ISPs. This can mean that traffic from you to the server goes via one path, while the response goes via a different one – this is more common than you’d think.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for $1.39
SUBSCRIBE NOW
30 day trial, then just $13.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
February 2022
VIEW IN STORE

Other Articles in this Issue


WELCOME
MEET THE TEAM
This issue Jonni’s being paranoid about malware. We wondered what’s the most paranoid thing you find yourself doing?
Threatscape Linux
If you weren’t taking your security seriously before,
REGULARS AT A GLANCE
German state to replace MS Office with LibreOffice
The switch will see 25,000 PCs move to open source software
Blender 3.0 released
Open-source 3D graphics tool receives major update
Man-uses-Linux fallout
After the well-publicised travails of a YouTuber trying to use Linux, the community bands together to help out
WHAT TO DO IN 2022
Matt Yonkovit Head of open source strategy and
ALARMING STUFF
Keith Edmunds is MD of Tiger Computing Ltd,
Proton: now even better!
Playing Windows games in Linux receives a big boost
Firefox sandboxing explained
Firefox 95 will come with RLBox to help boost security
Open 3D Engine now available
Open-source 3D engine will boost Linux game dev-work
Distro watch
What’s down the side of the free software sofa?
VENUS AND VULKAN
Antonio Caggiano is a software engineer based at
NEW AND IMPROVED
Jon Masters has been involved with Linux for
KERNEL WATCH
Jon Masters summarises the latest happenings in the Linux kernel, because someone has to
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to lxf.answers@futurenet.com
Mailserver
A diagram can save a thousand words, but
Alexander Tolstoy
is still zooming in and out his newly
FSearch
Version: 0.1 Web: https://github . com/cboxdoerfer/fsearch
Mapscii
Version: GIT Web: https://github.com/ rastapasta/mapscii
Telegrand
Version: GIT Web: https://github.com/ melix99/telegrand
Girouette
Version: 0.6.5 Web: https://github . com/gourlaysama/girouette
Sysmontask
Version: 1.0 Web: https://github.com/ KrispyCamel4u/SysMonTask
Luna Paint
Version: 0.11 Web: https://github.com/ lunapaint/vscode-luna-paint
AppImageLauncher
Version: 2.2.0 Web: https://github . com/TheAssassin/AppImageLauncher
Plop
Version: GIT Web: https://github.com/ Caltrop256/plop
Let’s Surf
Version: GIT Web: https://github.com/ jackbuehner/MicrosoftEdge-S.U.R.F
QOI
Version: GIT Web: https://github.com/ phoboslab/qoi
Xplorer
Version: 0.2 Web: https://github.com/ kimlimjustin/xplorer
DON’T TRUST YOUR VPN!
We lift the veil on the VPN world with the do’s and don’ts of what you should trust them with
REVIEWS
Easyspace web hosting
Mike Williams assesses a skilled UK host famous for its speed…
Intel Core i5 12600K
This is the best processor of 2022 so far for tech lovers and early adopters says Jacob Ridley, who’s looking forward to see what else the year will bring
Endless OS 4.0
Five minutes with the latest version of this distro and Mayank Sharma is reminded of the old adage: “The whole is greater than the sum of its parts.”
4MLinux 38.0
Any distro that’s survived for over a decade must be doing something right, but Mayank Sharma wasn’t prepared for what he saw inside this one…
Calculate Linux 22
Jonni Bidwell was dubious about making Gentoo easy, but after careful calculation of this KDE Edition he’s all for the idea…
Stellaris
Management hates anyone going anywhere, boldly or otherwise, so Phil Savage is in a space pickle as he’s only gone and taken over the galaxy
ROUNDUP
GUI backup tools
WE COMPARE GUI backup TONS OF tools STUFF SO YOU DON’T HAVE TO!
The Verdict
GUI backup tools
COMBAT MALWARE!
Jonni Bidwell wants to turn the tide on ransomware in 2022. It appears he has his work cut out for him…
TOP OF THE FOSS
CLOUD SOVEREIGNTY
Jonni Bidwell reveals how Nextcloud has become the poster-child not just for self-hosting, but for how to be a sustainable, successful FOSS project
Pi USER
Raspberry Pi Trading seeks stock flotation
Looking to boost investment, an initial public offering would inject up to $500 million into the business
Display HAT Mini
Les Pounder thinks that Pimoroni’s latest display was designed for ants, or at least younger people with better eyesight than him
Build an embedded temperature sensor
Les Pounder is feeling the chill this winter, but just how cold is it in his workshop and should he invest in a woolly hat, complete with pom-pom?
Booting multiple operating systems
Christian Cawley examines the various ways you can boot your Raspberry Pi, from installing an OS to multibooting
IN-DEPTH
THE GUIX SYSTEM
Guix takes a novel approach to its package management. Mats Tage Axelsson guides you around it
TUTORIALS
Graphing disk usage
Shashank Sharma is a fount of knowledge and knows how to present the information. Which is why he appreciates tools that display data clearly…
Store your vital passwords securely
Nick Peers takes a close look at Swifty, an offline password manager with a slick interface and hopefully bright future
Emulating the Commodore VIC-20
Les Pounder takes a trip back to the 1980s to discover which computer Captain Kirk was using when he wasn’t at the helm of the USS Enterprise
Recreate electronic rock music effects
Fancy following in the footsteps of Hendrix or Clapton? Mike Bedford shows you how to add 70s-style electronic effects to your music tracks
Build an advanced networking test lab
Stuart Burns brings us up to date on his networking insights and covers expanding the networked virtual lab beyond the single host
Build a self-hosted Fediverse server
Big Social has you, monitoring 24 hours a day all year round. Learn how David Rut land breaks free into his own self-run Fediverse echo-chamber
How to set up a pro-level music studio
Michael Reed digs deeper into what’s possible in the realm of a Linux-based music studio, and discovers that the sky’s the limit
CODING ACADEMY
Get the most from the Gin HTTP framework
Discover how you can write secure and powerful HTTP-based services with the help of Mihalis Tsoukalos, a bit of Go and the Gin framework
Chat
X
Pocketmags Support