2 registered members (AndrewAMD, juanex),
1,247
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: minimize cpu usage
[Re: Superku]
#430767
10/01/13 18:15
10/01/13 18:15
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
I think lite-c is fucked up beyond use thats what i think about half measures when it comes to coding languages but like you have an oppinion i have my own i think the only usefullnes it has as a language for actual game dev (for ease) is its vector functions (sometimes)
edit: by the way show me the games it makes run and dont come to me with its limited by the users ability as this is suppose to be a beginner engine and then you have pro versions and stuff show me wheres the pros using it and actually producing anything beyond "hey i make little thingy move and then then then .." its a piece of junk even in the hands of a good coder period ..besides this is off topic
Last edited by Wjbender; 10/01/13 18:22.
Compulsive compiler
|
|
|
Re: minimize cpu usage
[Re: Wjbender]
#430769
10/01/13 18:45
10/01/13 18:45
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
I think lite-c is fucked up beyond use [...] piece of junk even in the hands of a good coder period Yeah. Sure. https://www.youtube.com/watch?v=fakKvlErGJEFor any type op cpu intensive activity you should try and split those parts into threads thats what they are for. That doesn't help Kartoffel a bit. He is asking how to reduce cpu usage. Splitting computation to threads does not minimize the load. The load is exactly the same and even a bit more for the thread management part. Using different threads only offers benefits when you want to speed things up in terms of the duration of the computation.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: minimize cpu usage
[Re: Uhrwerk]
#430772
10/01/13 19:33
10/01/13 19:33
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
Actual lite-c or c++ ? Wont hold my breath for any further more proof of "lite-c" being worth anything but paperweight , seriously you dont want to argue that lite-c is anything but half measures ?
No , if he is running that computation during the time he plays the music , doung it on another thread will help taking the extreme load off the cpu because windows will split up the time every task occupies taking the load off of his main application period , do a couple of heavy algorithms in your main app and the cpu will have to dedicate time to your app and take alot of load while splitted up into seperate threads/tasks the cpus load will be split up by the time it gives to process every task and the processing load will be taken off the main app period thats why we have multicores these things are linked and designed for a reason , you want to argue that threads were actually invented for anything less ?
Compulsive compiler
|
|
|
Re: minimize cpu usage
[Re: Wjbender]
#430777
10/01/13 20:28
10/01/13 20:28
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
doung it on another thread will help taking the extreme load off the cpu No, that is not the case. Using multiple threads does not magically take work away. The work to be done stays exactly the same, regardless of the number of cores or cpus being used. Multiple cores only help in terms of speed (assuming a given problem can be effectively split into separately calculable problems). If you want to empty 20 bottles of beer and ask a friend for help you can split the "work" among you. This will half the execution time but that won't reduce the overall number of bottles to drink. If you're unlucky and you only have one 10 liter bottle instead of 20 .5 liter bottles the work cannot be split and the time required cannot be reduced. What Kartoffel is asking for is how to reduce the overall number of beer bottles to drink. He's not keen on drinking the beer faster, he wants to drink less...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: minimize cpu usage
[Re: Ch40zzC0d3r]
#430778
10/01/13 20:30
10/01/13 20:30
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
There is not really "8" cores mostly 4 with hyperthreading wich i am not going to elaborate on further ..
But like i have said dont know whats happening in the app therefore my advice could be ignored..
Only possible advice that could be given is to find whatever eats away at your cpu usage and try to do less of that ..
This could be hard because it very well may just be as "less" as it could be i wouldnt know but do know that cpu load is not actually a bad thing though videos music and media as such typicaly are cpu intensive
Compulsive compiler
|
|
|
Re: minimize cpu usage
[Re: Wjbender]
#430808
10/02/13 16:20
10/02/13 16:20
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
thank you all for your replies!
Although it seems like I can't change anything at the (background-) tasks done by acknex itself, I'll ask in the dev's forum, maybe there's something I can do.
POTATO-MAN saves the day! - Random
|
|
|
Re: minimize cpu usage
[Re: Kartoffel]
#430832
10/02/13 20:52
10/02/13 20:52
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
On a side note: What system have you got? Running acknex without default.c included but nothing else utilizes about 50% of one of my cores @ 60 fps. At 30 fps it utilizes about one quarter of one core. I got an AMD FX 8350 processor.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: minimize cpu usage
[Re: Uhrwerk]
#430935
10/06/13 11:09
10/06/13 11:09
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
I have to bring this up again but to humble agree that yes you were correct with threads excuse me for the little rant there , but one thing i wouod not back down from is lite-c suck imo i wil never like it unless it were actual full blown c++ ..just my prefered language
yes supercan is cool agreed ..
Hope you guys have a nice day/night
cheers
Compulsive compiler
|
|
|
|