Closed ghost closed 6 years ago
Hi @rucuriousyet, I believe it is because you are running a busy loop without letting the thread sleep. You can put an sdl.Delay(16) inside the loop at the end to make it not so busy.
Are you sure @veeableful? sdl.PollEvent blocks until an event is pushed in, so Im not sure why it would be going crazy over a loop.
oh never mind.. I see what's going on. You're right. Thanks for the help.
Just wondering whats going on here... On my razer blade stealth (dual core i7) running Arch Linux with Xorg and the following program, I am getting CPU usage of 25%..... super unusual for such a simple program.