Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
minimize cpu usage #430654
09/30/13 15:35
09/30/13 15:35
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline OP
Expert
Kartoffel  Offline 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: Kartoffel] #430657
09/30/13 15:59
09/30/13 15:59
Joined: Oct 2005
Posts: 12
I
irchel2 Offline
Newbie
irchel2  Offline
Newbie
I

Joined: Oct 2005
Posts: 12
The engine is supposed to use full cpu power, I guess? If you limit the FPS via fps_max, usage should go down AFAIK.

But regarding the quality of your work, I am surprised I have to tell you this?!

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 Offline OP
Expert
Kartoffel  Offline OP
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I'm already limiting to 60 fps smirk

however, even an A8-application which does nothing at all uses 8-10% at 60 fps. (1 core = 12.5%)

Quote:
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 grin


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 Offline OP
Expert
Kartoffel  Offline 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: Kartoffel] #430681
09/30/13 19:39
09/30/13 19:39
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
You could try to decrease the thread- or processpriority but IDK if this little boost helps you xD

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 Offline
Expert
Uhrwerk  Offline
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 Offline OP
Expert
Kartoffel  Offline 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 Offline
Expert
Uhrwerk  Offline
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 Offline OP
Expert
Kartoffel  Offline 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
W
Wjbender Offline
User
Wjbender  Offline
User
W

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
Page 1 of 5 1 2 3 4 5

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1