Facebook

Login

Support Sailonline

If you haven't already - join the SAILONLINE YACHT CLUB!

Please also consider making a donation - all amounts are greatly appreciated!

Board » General Discussion » DTF calculation

One of the most frequently asked questions on chat is how the distance to finish is calculated. I've tried to explain that, based on my understanding. If anyone knows differently, please add to the thread.

The first two plots here are sketches of a race similar to our SWR Leg 6. That is a good example of where the DTF is not entirely intuitive. The third plot is the mark to mark distance, which many think should be the DTF.

The distance to the next mark is determined by the closest distance to the line that goes out from the mark. This line (the mark 2 rounding line) is drawn at right angles to the line between marks 1 and 3, starting at mark 2 and continuing infinitely.

From that point, the next part of the DTF is the distance to the next mark. Then mark to mark to the finish.

So looking at the attached plots. Boat A sails close to the rhumbline, so its DTF is very similar to a mark to mark course.

Boat B, however, is sailing wide of the mark. From B1 we find the closest point on the rounding line (point X). From there to mark 3.

All the distances from the various positions are shown on the plots.

--- Last Edited by NZL Scotsman at 2012-05-01 10:11:12 ---
Attachments
If you have another look at the mark to mark system, the main problem with this is that when you approach the mark rounding line wide - then the DTF includes the distance to this mark until you pass it. Then it jumps to the next mark.

For example Boat B at B4 jumps from 43nm to 35nm as soon as the line is crossed.

The existing system has a similar problem, but it is much less severe. The problem only really occurs when you have a situation like B3, where the mark 3 rounding is very wide and therefore the mark 3 to 4 distance is much greater than compared to boat A. (35nm compared to 17nm).
Here is an alternative method of calculating DTF that might avoid some of the issues the current version creates - those rare occasions when the course shape results in longer DTF than is reasonable.

The attached plot will help with this description. Instead of waiting until the mark is rounded before the next mark is considered, DTF is determined by going to the next mark as soon as the extended bearing is crossed. If the boat crosses back, then simply revert to distance to the mark.

For example B1 has crossed the line, therefore DTF is distance to Mark 3 plus 3-4 distance (141+17=158nm). This compares to 166nm with current method.

Now compare B2 and B3. The boat has only moved about 15nm. DTF for B2 = 108nm, B3 = 98nm. Sounds reasonable?

The existing method B2 - 112, B3 - 111.

I think this method will be easy to compute, so it will not add to the server requirements. I cannot think of any disadvantages, but might be worth testing it with some more examples.
Attachments
My personal solution is to ignore ranking and sail, all will be sweet when we cross the line ;-)

Your method of calculating is slightly off. Example 1 shows best (at our current situation on VOR6) is how it is currently done, but rather than orthogonal to the line *1-*3, the 'scoring line' that extends from *2 to score roundings bisects the angle *1-*2-*3. OK, in your diagrams this does not make a lot of difference - but shift *2 along the direction of line *1-*3 and you can see it can... This is the BRG value on the NOR - Brg from ship to mark at the instant the server scores your rounding.

Just some advice from experience (regarding alternative methods) - you can draw 100 examples and it all works fine, but there is often some edge case where things go nuts...
Diagram 4 does appear a better method of computing DTF, but not of scoring roundings (B3 should not be considered to be on Leg3 for example, and could flip from Leg2 to 3 many times on its way to the finish? sim. B1) and we still need the line we currently have extending from the mark to score roundings (and to detect 'unwindings')
This would be where is creates more load to compute - 2 lines crossings per mark instead of 1 - actually 1 line crossing (score) and 1 'which side of the line are we' (dtf)
(not saying is a bad idea, just commenting because you did about server loads)

It's great that others are thinking on things like this though - when you are doing such examples though, try pulling out GE and drawing LONG courses, as these are really the only ones where the ranking ever becomes an issue for some - when a GC path significantly changes where on the line the scoring point is, compared to a Loxo (and also the scoring line itself, being GC) - small distances like in your diagrams don't show this effect. Also GC can change the edge cases a bit - remembering back to the ranking fiasco on Leg 5 while the scoring point was the south pole for pretty much every boat.

Of course, the other question is "Is this a good allocation of development resources?" - which always needs to be asked ;-)
I help develop the client interface for the best online ocean racing sim there is... __/)/)_/)__
Thank you NZL Scotsman

This is a very complicate way to measure the DTF.

I think its not that hard to implement a way to calculate the DTF based on a point to point measure:
- point to point for "mark to mark", and
- point to point for "boat to next mark".

Its a suggestion to SOL programers.

Fair winds

--- Last Edited by Armando Faria at 2012-05-04 02:33:41 ---
Boteco1 - Make Bore Impossible
It is point to point for future legs??
It is actually point to point for all legs, just for the first 2 the exact location of that point is not fixed...

It isnt really any more complicated than just computing boat to mark to mark etc, but it is more realistic. It is exceedingly difficult to write an algorithm that can most accurately handle all possible course configurations, sizes, and locations (for example, had the VOR Leg5 been translated N so that it crossed the Equator, but otherwise remained the same shape, we would not have had the ranking issues with the South Pole)

If we change it then boats that stay close to the rhumbline will most likely figure higher in the rankings than they are. Personally I would rather appear lower in ranking than I really am. There is no realistic way to have a consistently accurate ranking across the whole race - given the very different configs/sizes/locations of SOL races and the variety of possible routes.

Rank calculations and visualisations like you see on the AC45s and VOR inport races only work for pure Windward/Leeward courses, and even then as the wind becomes more shifty they become less accurate.

I don't really see there is much wrong with the current system
I help develop the client interface for the best online ocean racing sim there is... __/)/)_/)__

Please login to post a reply.

Races

Next Race: 00d 00h 00m


Current Races:

Tall Ships 2026 - Aarhus to Harlingen


Welcome to the first of four virtual Tall Ships Races in European waters which are concurrently being organized in-real-life by Sail Training International . The course for this first race is from Aarhus in Denmark, through the Skaggerak and down the North Sea to Friesland’s Harlingen – a proper tall ship training adventure of circa 450nm, which online this year you will race in Sailonline’s classic Clipper 240.
NOTE: Starts and Finishes in tall ships racing are always offshore to avoid conflict with shipping and shipping lanes; online and real-life may not match exactly.
Race #1992
INFO by brainaid.de
Clipper 240 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: TSI - SUPBUD - SYC
Race starts: Jun 27th 16:00 Registration Open!
▶ Flash
GO TO RACE

Viareggio Bastia Viareggio 2026

Our sixth race of nine to celebrate all things Mediterranean - fickle winds, history and olive oil - was planned to be our third buddy-up with another incredible Italian event, the Viareggio Bastia Viareggio (or BVR for short). Unfortunately, in-real-life the BVR has been cancelled this year. But online we shall race it never the less. It’s a quickie – a 160nm roundtrip there-and-back in classic Class 40. Have fun, and if you’re planning a BBQ, piccola isola Capraia halfway across is simply lovely!
Race #2041
INFO by brainaid.de
Class 40 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: MED - SUPBUD - SYC
Race starts: Jun 24th 12:00 Registration Open!

▶ Flash
GO TO RACE

Shetland Race 2026 - Leg 2


After the thrill of the first leg, we don't linger long in Lerwick, Shetland. Following brief but joyous celebrations, it's time to set sail back across the North Sea to Bergen, Norway, for the gripping second leg of the Shetland Race 2026!

Covering another unpredictable 190 nautical miles, tactical depth and fierce competition await. This year, we take the helm of the Linjett 33. Designed by Mats Gustavsson in 1994 for Sweden's historic Rosättra Båtvarv, this sturdy, quality cruiser-racer has been a Sailonline favourite in northern waters since 2010. Whether you are chasing victory or savoring the voyage, hoist your sails and let the journey home begin!
Race #2040
INFO by brainaid.de
Linjett 33 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking:
SHE - RED - SUPBUD - SYC
Race starts: Jun 20th 16:00 Registration Closed
▶ Flash
GO TO RACE

Brisbane to Keppel Tropical Yacht Race 2026


When the winter weather turns cool in southern Australia, sailors head up to the warmer tropics. Sailors from all over the world make their way to The Great Barrier Reef for the big winter regattas at Hamilton Island, Airlie Beach and Magnetic Island.
This year's B2K will start on 20 June to offer an event suited to a broader range of boats. Sailonline is, once again, joining with the racers from RQYS to race the 343 nautical miles from Brisbane to Keppel Island, this time in our First 44.7. It might be winter down under, but all you will need is shorts and t-shirts.
Race #2026
INFO by brainaid.de
First 44.7 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SUPBUD - SYC
RACE CLOSE: Sunday,
June 28 at 2300 UTC.
Race starts: Jun 20th 01:00 Registration Closed
▶ Flash
GO TO RACE

Newport Bermuda Race 2026


The 636-mile Newport Bermuda Race is one of the oldest regularly scheduled ocean races, and with the Fastnet and the Sydney Hobart Race, it is one of the three great classic races of the yachting world. First raced in 1906, now in its 54th biennial, the Race can again also be participated in online. In real life, the race is open to entry in four different division – Double-Handed, St. David's Lighthouse, Gibbs Hill Lighthouse, and Finisterre Division – which in the past we have also offered online. This year, however, our online race will be all-in one-design in silky swift Club Swan 50 yachts, so that your results can count towards SOL’s SUPerBUDdy title, whilst hopefully still giving you a chance of overall line honours against the fastest yachts of the real-life Gibbs Hill Division, especially if you can find some forecast winds that don’t quite work out that way on the real water!
Race #2038
INFOby brainaid.de
Club Swan 50 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SUPBUD - SYC
RACE CLOSE: Wednesday,
July 1 at 2300 UTC.
Race starts: Jun 19th 17:05 Registration Open!
▶ Flash
GO TO RACE

Bluefin Tuna - Mexico Gulf to North Sea 2026

Join us and follow the Bluefin Tuna, as they migrate from their spawning grounds in the Gulf of Mexico to their feeding grounds in the North Sea off the coast of Norway. This 4300 nm race is part of our Ocean Championship and the final race of OCQ2 2026, and also the second leg of our Migration series. We will be sailing in our Gunboat 90. Race #2035
INFO by brainaid.de
Gunboat 90 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: OCQ2 - MIG - OCCH - SYC
RACE CLOSE: Saturday,
July 4 at 2300 UTC.
Race starts: Jun 08th 11:00 Registration Closed
▶ Flash
GO TO RACE

Go to race archive

SYC Ranking

  1. Sailonline Yacht Club Member WRmirekd
  2. Sailonline Yacht Club Member KaSToR
  3. Sailonline Yacht Club Member CriticalHippo
  4. Sailonline Yacht Club Member bonknhoot
  5. Sailonline Yacht Club Member Panpyc
  6. Sailonline Yacht Club Member rafa
  7. Sailonline Yacht Club Member cdhinman
  8. Sailonline Yacht Club Member HoratioPugwash
  9. Sailonline Yacht Club Member YANN
  10. Sailonline Yacht Club Member ms0689

View full list

Series

Mobile Client

SYC members have the benefit of access to our mobile/lightweight web client!

The mobile client