Random Things

Random Things

44M Downloads

getStrongPower() high tick time

budgej opened this issue ยท 4 comments

commented

Reposted per request.

#311

I think this issue still persists. I haven't looked for this function in other areas, but it is definitely slowing down Refined Storage controllers. In this image, getStrongPower() is taking 4.5 ms of the controller's 11 ms overall time. There is also an example in onPostWorldTick (1.5 ms of 3.5 ms is spent on getStrongPower). I've included two sampler reports, one with RandomThings and one without.
With
Without
profiler image

commented

That should fix it, if it still happens in the next version create another issue.

commented

It is down to 14.36% of the controller tick time now, from 38.16%. Much improved.

commented

Did you build RT yourself? There isn't a released version with this in it yet ^^.

commented

No, I used 4.2.6. Interesting... I will report back when the next version is available.