How would I start a loop to render the 3d graphics. I don't want to use the onPaint event cause I belive there is a better way, such as using a timer or somtin but I am not sure.

So what is the best way to create a loop? And how would I tell how many frames a second using that method?