- iRacing.com Announces iRacing 2.011,355
- iRacing.com to create virtual McLaren MP4-12C GT38,007
- Scanning What’s in Store for iRacing with Tony Gardner6,014
- Dave Kaemmer Comes Clean on Dirt5,497
- Improving the Sound of iRacing4,825
- iRacing 2.0 Debuts in 2011 Season 34,765
- Preview Shots of HPD ARX-01C, Ford GT & Suzuka4,742
- Two New Cars and Two New Tracks Coming to iRacing Soon4,253
- iRacing Pro Race of Champions Gets Green Flag Wednesday3,304
- Gooden Plenty II2,942
- Towler, Wood Suspended from Upcoming iWCRR Events 66
- Coming Soon, the iRacing Driving School 41
- iRacing.com Announces iRacing 2.0 41
- SFI Decertifies All Impact Racing Products 27
- Dave Kaemmer Comes Clean on Dirt 27
- iRacing Announces Added Features, Lower Prices 26
- iRacer Profile: Sandeep Banerjee 25
- The Customer is (Nearly) Always Right 17
- iRacing Simulation Gives NASCAR Hall of Fame Guests Authentic Driving Experience 17
- Improving the Sound of iRacing 15
- iRacing.com2134
- NASCAR 1753
- Motorcycles 1711
- Formula Cars 1567
- WRC 1242
- IndyCar 1149
- Touring Cars 752
- Sports Cars 300
- Other Racing 314
Sim Racing’s Code of Uncertainty
by Ray Bryden on March 27th, 2010
A cop pulls over Heisenberg, and asks him “Do you know how fast you were going?” and he answered “No, but I know where I am.” It’s a geeky scientist joke about the Heisenberg Uncertainty Principle which states the more precisely you know the location of something, the less you know about its velocity, and vice versa.

"There is always a certain amount of uncertainty about where everyone on the track actually is at a given time . . .
I often think about that when I am fighting for track position, because there is always an uncertainty principle of sorts at issue for online sim racing. Since all iRacing events are online over the internet, there is always a certain amount of uncertainty about where everyone on the track actually is at a given time. The reason is simply that although your computer knows your virtual location and trajectory well enough, it takes a quantity of time for that data to be transferred to the host server, which is collecting data from all the other racers. As that transfer is not instantaneous, the amount of time will result in a growing amount of error which is proportionate to the amount of network lag time (ping time).
Additionally, the updated data for each driver’s location and velocity vector needs to be transferred to all the other drivers, which again adds to the time and thus error.
This necessitates a prediction made by your system to estimate where the drivers are given what was known about their position and velocity before the data started its long journey. It makes an educated guess based on their data along with some corrections which take into account the layout of the track.

"They could be in a much different location, particularly if they do change trajectory suddenly."
So for instance if you have a 200 ms ping time and you are racing against someone with a 300 ms ping time, that means as you tailgate him down a straight at 125 mph, the computer only knows that he is going 125 mph about 75 feet behind you, half a second ago. The situation is much easier with lower ping times, so in the same situation with both drivers at 50 ms ping times, the car would probably be just behind you a tenth of a second ago at the instant where he is supposed to be right in front of you.
Clearly, the computer has a lot of data to sort out, both on the server side and on your local machine to keep track of where everyone is and where they ought to be given that aged information. Predictions are never perfect, and can never anticipate driver behavior, such as early braking, changing lines, etc. so this situation leads to a false sense of certainty. We don’t see a cloud of probability of the other cars on the track. We only see a precise image of the best guess of where he could be. In actual fact they could be in a much different location, particularly if they do change trajectory suddenly.
This is what leads to what is commonly referred to as “phantom 4x.” One of the drivers has contact with the second driver’s car, which unfortunately has been predicted to be in a place that is not where the second driver really is. But the second driver never experiences any contact, because on their computer the predicted position of the first driver’s car is clear of any contact. Because the contact occurred for one of the drivers, the server awards the contact points to both drivers, even if one of them was not actually observed to be involved in a physical incident.
My best advice is to look at the entry list at the start of the event and take careful note to the drivers with the largest ping times and/or lowest signal quality (lots of data packets lost), since these drivers will naturally have a higher degree of error in their position estimation and thus you must view their location on the track as an estimate and thus give them a little extra room. For people who live farthest from the servers, this will be a common experience since the age of the data will naturally make most other drivers a danger in close quarters.

"By driving in a predictable way, and allowing a little extra room around the other cars you can save a lot of frustration and provide for less drop in your safety rating."
Even with a perfect prediction code, the limitations of the speed of light, network hardware and computers will always mean error will be present in representing the position of other cars on the track. By driving in a predictable way, and allowing a little extra room around the other cars you can save a lot of frustration and provide for less drop in your safety rating.
Anyone who has watched a TV interview where a long lag time is involved can appreciate the challenge facing your computer to keep track of where everyone is supposed to be on the track.
And if you see Werner Heisenberg on the track, give him a lot of room because he’s been dead for 34 years. That’s a long ping time, even for a DE-AT-CH guy.
Screen shots 1 & 2 courtesy of Jameson Spies; #3 by Ray Bryden



David Phillips
Chris Hall
Jameson Spies
Jason Lofing
Ray Bryden
Patrick Atherton
Tim Terry
David Allen
Allen Krier
Jameson Spies
March 27th, 2010 at 6:58 amnice screenshots.
Nic Morse
March 27th, 2010 at 1:25 pmGood Article.
Lincoln Miner
March 28th, 2010 at 4:12 pmNice article Ray. I wonder what percentage of online drivers really understand why you can’t run as close to other drivers online as in real life. Real life doesn’t have 1/2 second prediction code… A lot of ground can be covered in 1/2 second, especially under braking. Cars travel 144 feet while going 100mph in 1 second. 72 feet in a half a second. Online drivers need to stop trying to emulate tv and give more room online.
Thomas Gombeer
March 29th, 2010 at 6:16 pmVery good article
Josh Reaume
March 30th, 2010 at 12:23 amGreat Article! Keep em coming!
Justin Weisel
March 30th, 2010 at 12:48 amVery informative.
Doug Pitt
March 30th, 2010 at 3:57 pmThanks for the insight, makes a lot of sense.
Bob
April 1st, 2010 at 2:56 pmI don’t see how one can truly be concerned with this and still manage to focus and race. I just strive to keep it clean as best I can.
Riches
April 1st, 2010 at 9:57 pmThat’s why we need to get rid of the damn prediction, and only count when incidents occur on both clients involved.
Close racing is sometimes almost impossible when 2 clients are half a world apart.
I can predict the world will end tomorrow… is that the truth?
Richard
April 1st, 2010 at 9:59 pmSure.. 40 cars on the track and i will still remember who got bad ping in the heat of the race
Luis Babboni
April 21st, 2010 at 7:08 pmDx Dp >= 1/2 h/2Pi
Mr. Tractability
May 7th, 2010 at 10:07 pm@ Riches
I can predict YOUR world will end tomorrow – just keep pushing how late you can brake into #1 and my prediction will come true. And I don’t even need a computer to do it.
(Predictable driving EQUALS reasonable certainty in predicting location.)
~IS MUCH BETTER THAN~
(No prediction TIMES 0 confidence in driving on track with anyone further than a block away EQUALS Useless simulation of racing with remote human competition)
Luis Babboni
August 30th, 2010 at 6:26 pmNow I know why the jupiterians are so careful and the mercurians too agresives!
Is not possible to imagine, in the future, that the data can go from one driver computer to other driver computer without the need to go throw the hoster computer?
This way the uncertainty becomes near half of the actual.