Doing my own OSC code.

Generally you have two choices, look up table or calculation. With a saw tooth wave calculation is a simple addition operation and is quick and easy.
But I am sure you know this so maybe I am missing the point.