experiment: bring portals to front after every request is rendered, rather than just once at the end

may hurt performance - if so, make it delay before running, or skip if high number of portals
This commit is contained in:
Jon Atkins 2013-12-28 08:02:09 +00:00
parent f69038cd06
commit c74971e84e

View File

@ -114,6 +114,9 @@ window.Render.prototype.processGameEntities = function(entities) {
} }
} }
// reorder portals to be after links/fields
this.bringPortalsToFront();
} }
@ -140,8 +143,8 @@ window.Render.prototype.endRenderPass = function() {
} }
} }
// reorder portals to be after links/fields // // reorder portals to be after links/fields
this.bringPortalsToFront(); // this.bringPortalsToFront();
this.isRendering = false; this.isRendering = false;
} }