SirSengir/BuildCraft — pull request #109 by CovertJaguar (2012-07-20 05:49:59+00:00)
Title: Some efficiency improvements to the pipe renderer.

You guys might be interested in this. Some efficiency improvements for pipe rendering.

Added a distance check of 24 blocks to the pipe tile renderer. The distance check is pretty cheap, and hopefully this might reduce some of the client's workload. Distance can be adjust via the renderDistanceSq var if desired.

Normal tile entity are rendered up to 64 blocks away, unfortunately that value is hard coded in TileEntityRenderer or the additional distance check wouldn't be needed.

Also made a few other tweaks that should improve things slightly. Including capping the number of items a pipe can render in it.

This is all tested and works.