Quantcast
Channel: Game loop help!
Viewing all articles
Browse latest Browse all 6

Game loop help!

$
0
0

Hi. I'm trying to make a game that works like most games. A game loop. The thing I don't understand is that C# is commonly said to be a good  game development language. That doesn't make any sense because you can't have a main loop. I tried Application.DoEvents(). I know it's hated by lot's of people so I've came to ask which is the best way to make a game loop?

A lot of loops that involve invalidating does not work well as the program gobbles up all the CPU and it hangs. I tried making some delay but it didn't work. Any idea how to make one?

Thanks in advance.


Have a Byte on some Pi!

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>