Hi im new in making games. I am wondering how I can make a fast game loop. I need to set the interval to 5 or 10. When i do this with a Timer it doesnt run as fast as that.

Every time i try something it results in a 100% cpu usage.

Does anyone know a good gameloop then can handle 5ms interval