CPU usage at 18% when running my game

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
danielmccarthy
Posts: 51
Joined: Fri May 30, 2014 12:55 am

CPU usage at 18% when running my game

Post by danielmccarthy »

Is it normal for an irrlicht application to take up 18% of CPU usage pretty much all the time its between 12-18% cpu usage.
kklouzal
Posts: 343
Joined: Sun Mar 28, 2010 8:14 pm
Location: USA - Arizona

Re: CPU usage at 18% when running my game

Post by kklouzal »

That's exactly what mine uses ;p
Dream Big Or Go Home.
Help Me Help You.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: CPU usage at 18% when running my game

Post by hendu »

Use vsync to limit cpu usage to visible fps.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: CPU usage at 18% when running my game

Post by CuteAlien »

A main-loop will take all the processing power it can get (every loop does). Which in a single-threaded application means it will use one processor. If it uses less then there is some place where the application releases the processor (aka - some sleep call).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
danielmccarthy
Posts: 51
Joined: Fri May 30, 2014 12:55 am

Re: CPU usage at 18% when running my game

Post by danielmccarthy »

I'm already delaying by 10ms every loop around
Post Reply