Topic: Performance discussion
Tibor Topic Opener |
Posted at: 2015-03-24, 20:29
Hi,
Top Quote |
GunChleoc |
Posted at: 2015-03-25, 08:12
I'm not really. There should be a function Busy indexing nil values Top Quote |
Tibor Topic Opener |
Posted at: 2015-03-25, 20:43
I allready spent some time looking at the code - for me it is total mess. I just hoped there is somebody who knows and will be able to fix it easily. In fact I made some progress and forced task_idle to stonemason, it was fine CPU-wise, but % of utilization went up as successful "task_idle" contributed to statistics as success. (While there were no stones nearby...) So... I will see ... Top Quote |
wl-zocker |
Posted at: 2015-03-25, 21:45
If you changed it in the conf files, adding the line "Only few people know how much one has to know in order to know how little one knows." - Werner Heisenberg Top Quote |
Tibor Topic Opener |
Posted at: 2015-03-25, 22:01
I am not sure, I want to achieve:
Top Quote |
wl-zocker |
Posted at: 2015-03-26, 17:27
Then try The code from the quarry:
I reversed the order of the two statements some time ago. Before, the quarry slept 25 s before the productivity decreased if there were no stones left, which means that it took 500 s (4 min 20 s) until the productivity had reached zero. In this time, no stones were produced, so the statistic was misleading. Now the quarry checks every 50 ms (that's in C++, SirVer said) whether there are stones, keeping the CPU busy. But changing it program to
should solve the problem. For balancing reasons, the numbers should add to 25000. "Only few people know how much one has to know in order to know how little one knows." - Werner Heisenberg Top Quote |
Tibor Topic Opener |
Posted at: 2015-03-26, 20:24
I again spent quite a lot time trying to understand that C++ code and then I noticed that only barbarians and atlanteans quarries behaves badly and emporian ones works fine. Peculiar. And the difference is in conf files, the way how programs are defined. If I open the bug report, will somebody volunteer to fix these conf files? I will keep looking at other potential performance problems, perhaps there will be another possibilities how to reduce CPU use... Top Quote |
GunChleoc |
Posted at: 2015-03-26, 22:13
Filing a bug report is a good idea, even if nobody should have the time right now to fix it. Busy indexing nil values Top Quote |
Tibor Topic Opener |
Posted at: 2015-03-26, 22:41
This si something that does not require serious coding skills so perhaps.. Top Quote |