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:
parent
f69038cd06
commit
c74971e84e
@ -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
|
||||
this.bringPortalsToFront();
|
||||
// // reorder portals to be after links/fields
|
||||
// this.bringPortalsToFront();
|
||||
|
||||
this.isRendering = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user