Refinedstorage: TileCable should avoid being ticked

Created on 26 Jan 2017  路  5Comments  路  Source: refinedmods/refinedstorage

Besides decoration, cables and pipes are typically the most commonly used tile entities by a large margin. Since every ticking TE comes with a substantial cost for every tick and during chunk loads/unloads, TileCable shouldn't implement ITickable if at all possible.

Enhancement

Most helpful comment

I'll look into removing them being a TE, then.

All 5 comments

It doesn't do anything when ticking, is the cost that high?

Per my most recent observation on FC's SF3 instance roughly 35% of the total tick time go towards mere te quantity/management overhead, excluding any actual work in te.update(). RS cables are ~17% of the ticking te quantity.

That suggests quite heavily that having thousands of TEs tick is a bad idea, especially if they don't serve any purpose. I've also had quite some success with this kind of optimization before, e.g. some fake light blocks for long range lights killed servers despite not doing anything of significance in updateEntity().

I'll look into removing them being a TE, then.

Ignore if nonsense, but xnet cables are not TE, maybe you could check it out for inspiration.

This issue has been fixed, no inspiration needed :P

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tyler799 picture Tyler799  路  5Comments

mister-man picture mister-man  路  4Comments

popemichael picture popemichael  路  5Comments

GreatGameGal picture GreatGameGal  路  4Comments

frogalo picture frogalo  路  4Comments