1. A method comprising: receiving, by a computer system, an indication of rotational drilling time and slide drilling time for a drilled portion of a wellpath; calculating a value indicative of tortuosity for an undrilled portion of the wellpath based on the indication of rotational drilling time and slide drilling time for the drilled portion of the wellpath; determining, by the computer system, whether or not the value indicative of tortuosity calculated for the undrilled portion of the wellpath exceeds a tortuosity threshold; changing a drilling parameter regarding the undrilled portion of the wellpath responsive to determining that the value indicative of tortuosity exceeds the tortuosity threshold; and drilling a wellbore along the undrilled portion of the wellpath according to the changed drilling parameter.