niantic perform agressive filtering of short links - so no point in waisting time in IITC testing link length too

This commit is contained in:
Jon Atkins 2014-06-16 16:39:11 +01:00
parent 07066c5711
commit c2ffad80d7

View File

@ -490,13 +490,16 @@ window.Render.prototype.getPortalClusterID = function(portal) {
window.Render.prototype.linkVisible = function(link) {
if (!this.bounds.intersects(link.getBounds())) {
return false;
}
// server now culls short links - so no point in IITC also doing it
return true;
var lengthSquared = this.getLinkPixelLengthSquared (link);
// if (!this.bounds.intersects(link.getBounds())) {
// return false;
// }
return lengthSquared >= this.LINK_VISIBLE_PIXEL_LENGTH*this.LINK_VISIBLE_PIXEL_LENGTH;
// var lengthSquared = this.getLinkPixelLengthSquared (link);
// return lengthSquared >= this.LINK_VISIBLE_PIXEL_LENGTH*this.LINK_VISIBLE_PIXEL_LENGTH;
}