Page 1 of 4

[Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 10:31 am
by madeleine
Hi everybody my problem is since rev. i dont know what (last time played runes of magic a year ago) micromacro.exe has up to 50% CPU usage.

My System:
E8400 @ 4250MHZ
4GB Ram 5-5-5-5 cl whatever
Geforce 470 GTX @ 850/2000

In the past:
a year ago i was able to run up to 40 clients with 40 micromacro.exe
at this time the client was a prob but fix it by setting als textures, sounds, etc to 0byte.

today:
client 8,2 GB big version without changing the wdb-files about 1-5% CPU-Usage.
micromacro.exe 13-50% CPU-Usage

what i tried:
reinstalled micromacro svn update blabla
reinstalled rombot
removed all addons from rom
removed all specialstuff like userfunctions etc.
removed loot_all and other things that might be steel performance.
tried some changes at the player.lua
nothing worked!

got a fresh install of windows 7 64bit sp1 and redoing upper steps.
didnt worked at all.

pls help...

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 11:01 am
by rock5
I'm not sure if you have a problem. Usage has gone up but I don't know if it's gone up 50% in the year you've been away. I don't keep track of such things.

Edit: Sorry, didn't read that right. Micromacro using 50% cpu seems excessive. I don't know what could cause that.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 11:15 am
by madeleine
thanks anyway

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 1:06 pm
by Bubi
Have the same problem. The micromacro.exe needs a lot more cpu% awhile now.
Think starts with ch4.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 1:38 pm
by cufRet8e
madeleine wrote:In the past:
a year ago i was able to run up to 40 clients with 40 micromacro.exe
Hi madeleine. Those times are already gone. Now you may be able to run about 4-6 bots, not 40, due to game's memory consumption. BTW, you don't need to overclock your graphics card. Every minimized game client is using only a few percent of GPU power. So you may downclock your GPU to save energy and will be no difference in performance.

Make sure you disable your antivirus while botting and exclude Client.exe and micromacro.exe from DEP (http://en.wikipedia.org/wiki/Data_Execution_Prevention).
On my system every RoM Client is eating about 7-9% CPU and 1-3% GPU, and every micromacro process 3-5% CPU. Phenom II x4 overclocked to 3.5GHz + 8GB DDR3 RAM + Radeon HD 5850 1GB VRAM downclocked to 500/800MHz.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 2:10 pm
by madeleine
Ram consum isnt my problem u can lower it by extracting wdb files and write to zero. to slim client which is using only 30mb of ram.
Your Ratio (only for showing something is wrong): 2(client.exe):1(micromacro.exe) of cpu useage <-- this is quit normal
My Ratio is : 1(client.exe):10(micromacro.exe) <--- this isnt normal

My Cpu handles: MMX, SSE, SSE2, SSE3, SSE4.1, Vanderpool, Execution-Disable (XD-Bit) Thermal-Monitor 2, Enhanced Halt State (C1E), Speedstep (EIST), 64 Bit (EM64T)

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 2:34 pm
by cufRet8e
Process Explorer, download it here: http://technet.microsoft.com/en-us/sysi ... s/bb896653
Find process micromacro.exe, click properties, and show us Threads and Performance tabs.
Those are mine, for micromacro.exe started 26 hours ago and running since then.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 2:41 pm
by madeleine
Ok mom i will do


I tried the DEP disable but its useless for this issue, but for other if u wanne try
cmd(as admin):
/set {current} nx AlwaysOff

first cool tool i like ;)
and
take a look at the graph .... top is something about 42%

EDIT: add the thread pic at the moment of increased cpu usage.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 2:56 pm
by franek
@madeleine
same to me, after ch4 things got changed. less clients I'm able to run on my pc.
Is there any possibility to run "old" (rev from ch3 :D ) micromacro with actual adresses? If it is senseless just say.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 3:00 pm
by cufRet8e
franek wrote:@madeleine
same to me, after ch4 things got changed. less clients I'm able to run on my pc.
Is there any possibility to run "old" (rev from ch3 :D ) micromacro with actual adresses? If it is senseless just say.
Being not up to date with rombot for few commits can cause trouble, and you saying to revert it for commits from Chapter3? No, it's not possible :) Solution must be somewhere else. How high CPU usage is on your machine? Can you give details of your system and hardware and present process properties from Process Explorer?

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 3:15 pm
by madeleine
Process Explorer has no delay this is quit nice.

CPU Usage is increasing at:
/onLeaveCombat or function Looten()
rechecking the player.lua...

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 3:28 pm
by cufRet8e
madeleine wrote:Process Explorer has no delay this is quit nice.
What thats mean? Can you show screenshots as I did?

CPU Usage is increasing at:
/onLeaveCombat or function Looten()
rechecking the player.lua...[/quote]

Did you try with default profile?

EDIT: OK i see your screenshots now

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 3:40 pm
by madeleine
1. You cant see my attachments? in earlier reply?
2. its not the looten() function its something on leave combat..

UPDATE: changed waypoint to travel 2% of cpu usage everything normal..
UPDATE2: EGGBOT runs normal

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 4:50 pm
by Administrator
So you're saying that when moving and fighting, micromacro.exe uses only 2%, but during looting it uses 50%?

When you last updated MicroMacro, did you update all files, or just micromacro.exe?

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 5:10 pm
by cufRet8e
Yeah, as Administrator said. rombot should be updated and reverted, micromacro as well. When you make sure you have all latest versions, copy new ingamefuntions to your RoM/interface/addons. And disable all other RoM addons, especially lootfilter etc. Also use default profile in this case.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Wed Jan 18, 2012 5:33 pm
by madeleine
- micromacro 1.02 beta 1 rev22
- rombot 3.29 rev 694

already removed all addons

EDIT: It is not the looting if i disable looting cpu usage is the same. after battle.

Re: [Performance Issue] CPU Usage upto 50%

Posted: Thu Jan 19, 2012 12:10 am
by rock5
madeleine wrote:Ram consum isnt my problem u can lower it by extracting wdb files and write to zero. to slim client which is using only 30mb of ram.
What are wdb files? What do you use to extract the files? Which files do you write to zero? What do you mean by "using only 30mb of ram"?

Re: [Performance Issue] CPU Usage upto 50%

Posted: Thu Jan 19, 2012 2:21 am
by madeleine
rock5 wrote:
madeleine wrote:Ram consum isnt my problem u can lower it by extracting wdb files and write to zero. to slim client which is using only 30mb of ram.
What are wdb files? What do you use to extract the files? Which files do you write to zero? What do you mean by "using only 30mb of ram"?
Sorry long time ago not .wdb = .fdb
use .fdb extractor the same like for removespelleffekts.
then u can open 20000 files with notepad++ or someother editor and delet everything or easier write a batch.
After this u only have a floor in runes of magic.
rom will collect some garbage. Use the CTRL+ALT+DEL trick or something like zdefrag to free the ram.
After this the client.exe only using 30MB Ram. and rombot works well.


But pls back to my problem EGG bot runes normal because of no fighting or leave battle or something..
Can somebody watch his "killingbot" with Process Explorer if it jumps up to 6.000.000.000 Cycles Delta (properties-->threads)

Re: [Performance Issue] CPU Usage upto 50%

Posted: Thu Jan 19, 2012 2:34 am
by Administrator
Any more information you can provide would be helpful. Specifically when does it use a lot of processor time, and when does it not? Is there only certain waypoints that cause this, or is it any waypoint script with combat involved?

Re: [Performance Issue] CPU Usage upto 50%

Posted: Thu Jan 19, 2012 3:15 am
by madeleine
Micromacro CPU %:

MillerScript: 0-2%
waypointfiles with travel mode: 0-2%
waypointsfiles with normal mode and loot true: 3-50% (infight 3%, looting or leave combat 50%)
waypointsfiles with normal mode and loot false: 3-42% (infight 3%, leave combat 42%)