It is now believed that the Ottoman military was able to maintain rough parity with its rivals until the 1760s, falling behind as a consequence of a long period of peace on its western front between 1740 and 1768, when the Ottomans missed out on the advances associated with the Seven Years’ War.[66]
TIL:
https://en.wikipedia.org/wiki/Ottoman_decline_thesis