Sky Resources 2

Sky Resources 2

3M Downloads

skyresource tileEntityblocks eatup all bandwidth

CatAndHorse opened this issue · 3 comments

commented

Each skyresource tileEntityblock cost 5KB/s constantly , so each mid game player can eat upto 1mbps+ with about 20 machine

I saw you notify tileEntityupdate every tick even machine is not working

commented

I made some improvements that I hope improve this

commented

even a not working freezer cost 3Kbytes/s

commented
     static final int skipConst = 100;
  int skipCounter = 0;
public void markDirty()
{
	if(skipCounter <= 0)
	{
		super.markDirty();
		world.notifyBlockUpdate(getPos(), world.getBlockState(getPos()), world.getBlockState(getPos()), 3);
		
		skipCounter = skipConst;
	}
	
	skipCounter -= 1;
}

I made a temporary fix for my own server.Works fine.
By modify TileBase.java and simply skip 99% markDirty,my server come back to life again
Maybe you can temporarily use this before your Ultimate solution is done