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:
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?Code:'grafix is my graphicsdevice Do While True = True grafix.Clear(Color.CornflowerBlue) grafix.Present() Application.DoEvents() Loop




Reply With Quote