Gamers know the problem well: in the middle of an awesome, fast-paced battle, the action onscreen becomes slow and jerky. Suddenly, your character turns up dead, and you didn’t see who did it. In massively multiplayer online games, the problem of lag arises when a player’s computer can’t keep up with changes in a shared online world–and it can turn euphoria into frustration. New software being designed at the National University of Ireland, Maynooth, could help reduce the problem and may also have applications in military simulations.
“Ideally, somebody wants to drop down and play a game online with a bunch of other people and have the same experience they would have if everybody was in their home living room playing that game,” says Michael Katchabaw, an assistant professor of computer science at the University of Western Ontario. The problem, he explains, is that the players’ computers have to update each other on the players’ actions, and too many simultaneous updates can cause delays or overload the network. One way of reducing these problems, Katchabaw says, is a technique called dead reckoning.
Dead reckoning calls for each player’s computer to run a low-fidelity simulation of what’s going on in the game. At the same time, the computer runs a high-fidelity version that keeps precise track of the player’s actions and position. The computer constantly compares the two versions. If they don’t match, the computer sends an update to all the other participating computers, which can make the necessary corrections. While the computers must still broadcast updates, they don’t do it nearly as often as they otherwise would.
“Most well-known simulations and games actually use [dead reckoning] in one form or another,” including, for example, the popular computer game Quake, says Aaron McCoy, a postdoctoral researcher at the National University of Ireland and technical lead on the neural-network project. His group’s work is a way of improving on current dead-reckoning techniques.
McCoy and his colleagues’ neural-network system is at its best when it’s predicting erratic movements. Dead-reckoning systems assume that a game character will maintain the velocity and direction that it has at the moment an update is sent. That works fine for virtual bullets, McCoy says, but human-controlled avatars often exhibit fast, jerky movements.
McCoy’s system improves the process by installing a neural network in the player’s computer, adding another layer of prediction and enabling smarter updates. “What we’re trying to do with the neural networks is, we’re trying to say, ‘Look. We think that in half a second’s time we’re going to be here.’ So we’ll take that information into account and let the other computers know about it.” McCoy says that his system could reduce by 10 or 20 percent the 10 to 20 updates per second sent by many games, although he notes that the reduction fluctuates depending on the situation.