I've been looking at some tutorials on youtube and I noticed something that they all have in common. For the game loop they run an infinate loop calling the proper graphicsdevice methods, but also calling application.doevents eg:
Code:
        'grafix is my graphicsdevice
        Do While True = True
            grafix.Clear(Color.CornflowerBlue)
            grafix.Present()

            Application.DoEvents()
        Loop
I know for a fact that calling application.doevents in an infinate loop is dangerous. So my question is, what should I do instead of that?