Fix blinking entities

Hey, everybody. I create an entity in which I place PlaneGraphics. Then I create an ImageMetarialProperty and pass the path to my png or svg image. But if the entity is single, it blinks when I zoom or move the camera. When there are many objects everything is fine. Is there any way to fix this? I attach the code and video!

  name: "Red plane with black outline",
  position: new Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),
  plane: {
    plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Z, 0.0),
    material: new Cesium.ImageMaterialProperty({
      image: right,
      transparent: true,
      // color: new Cesium.Color(1.0, 1.0, 1.0, 0.9)
    dimensions: new Cesium.Cartesian2(1560000.0, 1561000.0)
cesium.viewer.scene.preRender.addEventListener(function () {
  let cameraHeight =;
  var newSize = 30000.0 * (cameraHeight / 2000000);
    newSize = Math.max(newSize, 100.0);
    let test = new Cesium.Cartesian2(newSize, newSize);
    let minHeight = 1000000;
    let maxHeight = 20000000;

  cesium.viewer.entities.values.forEach((item) => {

    if (cameraHeight > minHeight && cameraHeight < maxHeight) {
    if (cameraHeight  > 1000000) {
    = true;
    }else {
      console.log(123123123) = false




It looks this happens because your entities are rendered asynchronously in the webworker. If you want the entity to render synchronously, you can use a CallbackProperty for the dimensions property of your plane geometry.
I’m not sure I fully understand your code, but please let me know if the following Sandcastle is what you’re looking for.
link to Sandcastle

Congratulations! Thanks, dude!

There is a problem, when there are a lot of objects, FPS drops… What should I do?