Granted, my inclination was that the affect wouldn't be noticeable - after checking it looks like this is still enough of a bottleneck during map loading/transitions that the optimization is worthwhile. I've rewritten the 3D lines algorithm to use integer logic similar to the old function.