Permalink
Browse files

Use the updateOnce feature

  • Loading branch information...
YonatanKra committed Sep 13, 2017
1 parent 47ca39a commit d374ab61a1dfa61b2ca5a54a2cbf1b7e0aa24305
Showing with 14 additions and 0 deletions.
  1. +7 −0 Source/DataSources/BillboardVisualizer.js
  2. +7 −0 Source/DataSources/LabelVisualizer.js
@@ -107,6 +107,13 @@ define([
var item = items[i];
var entity = item.entity;
var billboardGraphics = entity._billboard;
if (billboardGraphics.updateOnce === 2) {
continue;
}
if (billboardGraphics.updateOnce === 1) {
billboardGraphics.updateOnce = 2;
}
var textureValue;
var billboard = item.billboard;
var show = entity.isShowing && entity.isAvailable(time) && Property.getValueOrDefault(billboardGraphics._show, time, true);
@@ -117,6 +117,13 @@ define([
var item = items[i];
var entity = item.entity;
var labelGraphics = entity._label;
if (labelGraphics.updateOnce === 2) {
continue;
}
if (labelGraphics.updateOnce === 1) {
labelGraphics.updateOnce = 2;
}
var text;
var label = item.label;
var show = entity.isShowing && entity.isAvailable(time) && Property.getValueOrDefault(labelGraphics._show, time, true);

0 comments on commit d374ab6

Please sign in to comment.