2 registered members (AndrewAMD, VoroneTZ),
1,258
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
minimize cpu usage
#430654
09/30/13 15:35
09/30/13 15:35
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Hey there, as some of you might have seen it already in another thread: I'm working on this simple music player: It works great except for the performance. The fps aren't a problem but with a resolution of 1280x720 (720p) @ 60fps it uses one full core (~3.5ghz) - which is everything it can get and for me that's kinda strange. so, what are you're experiences with acknex's performance and what can I do to minimize the cpu usage? (except for switching to another engine :P)
POTATO-MAN saves the day! - Random
|
|
|
Re: minimize cpu usage
[Re: irchel2]
#430660
09/30/13 16:13
09/30/13 16:13
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
I'm already limiting to 60 fps however, even an A8-application which does nothing at all uses 8-10% at 60 fps. (1 core = 12.5%) But regarding the quality of your work, I am surprised I have to tell you this?! it was actually pretty easy... some flat models, the fmod plugin, my hdrr pipeline and a little bit of math, that's all
POTATO-MAN saves the day! - Random
|
|
|
Re: minimize cpu usage
[Re: Kartoffel]
#430664
09/30/13 17:14
09/30/13 17:14
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
so, can anybody help me? otherwise I'll ask again in the 'ask the devs'-subforum
POTATO-MAN saves the day! - Random
|
|
|
Re: minimize cpu usage
[Re: Ch40zzC0d3r]
#430684
09/30/13 20:35
09/30/13 20:35
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Changing a process' priority doesn't change the amount of computation that needs to be done.
I guess your best bet is to reduce the complexity of the algorithms used.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: minimize cpu usage
[Re: Uhrwerk]
#430746
10/01/13 13:27
10/01/13 13:27
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
@Uhrwerk, thanks but as I've said before even an application which does nothing at all needs ~10% cpu usage.
POTATO-MAN saves the day! - Random
|
|
|
Re: minimize cpu usage
[Re: Kartoffel]
#430749
10/01/13 13:45
10/01/13 13:45
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Well, that's exactly what I would expect. The engine has to do some management jobs. Even if nothings happens the the task scheduler will run for example. And even if you don't render anything at all still about half a gigabyte of pixel data has to be calculated per second (assuming fullhd @ 60fps) and moved to the screen buffer...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: minimize cpu usage
[Re: Uhrwerk]
#430753
10/01/13 14:22
10/01/13 14:22
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
yeah... I just thought that maybe some of the background-management-stuff can be turned off (or modified / optimized).
POTATO-MAN saves the day! - Random
|
|
|
Re: minimize cpu usage
[Re: Kartoffel]
#430763
10/01/13 16:32
10/01/13 16:32
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
An a8 application wich does "nothing" does not really do "nothing" ....
For any type op cpu intensive activity you should try and split those parts into threads thats what they are for..
However , i would not know what goes on in your app so i guess my advice is of no use.. Lite-c sucks anyway
Compulsive compiler
|
|
|
|