Hi CE,
We are currently developing a game for industrial PCs. All PCs are working all day, so when we run the game it takes 100% from the CPU (if we'll have CPUs, or two cores it also will use 100%).
This industrial PCs works at low temperature, but if the aplication demands to the processor in this way, his useful life will be reduced. We tried in Ubuntu 9.4 and in Fedora 11, with Demo6, and it used 100% from the CPU in both cases (using CEGUI 0.7 version).
We dont have big needs about FPS, we think that with 30 FPS it will be just fine for us.
So, we would like to know if its possible to limit the CPU usage. If its not possible, do you know about a workaround, for the aplication, that could reduce the CPU usage on IDLE time?, and one more question; if we dont have anything to draw, could we avoid for the aplication to draw?
Thanks in advance for tour time and assistance.
WB
CPU Usage
Moderators: CEGUI MVP, CEGUI Team
Re: CPU Usage
Please read the Forum Guidelines before starting a new thread. Usually your question will have already been asnwered. For example, searching for "cpu usage" turned up this.
The gist is that CEGUI only runs when you tell it too. If you feed it input, it will process that input. If you tell it to render, it will go through the rendering process, etc. In otherwords, if you want to reduce cpu usage then stop giving CEGUI something to do every single frame. A quick solution may be to lock the frame-rate of your application.
Also, demo's are generally not good indicators of resource usage, optimum code paths, efficiency, etc. And the amount of cpu usage does not lie solely in the hands of CEGUI - it is your responsability as the application developer to figure out how much time you need to spend per frame on logic and rendering and balance out cpu usage yourself.
The gist is that CEGUI only runs when you tell it too. If you feed it input, it will process that input. If you tell it to render, it will go through the rendering process, etc. In otherwords, if you want to reduce cpu usage then stop giving CEGUI something to do every single frame. A quick solution may be to lock the frame-rate of your application.
Also, demo's are generally not good indicators of resource usage, optimum code paths, efficiency, etc. And the amount of cpu usage does not lie solely in the hands of CEGUI - it is your responsability as the application developer to figure out how much time you need to spend per frame on logic and rendering and balance out cpu usage yourself.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 3 guests