<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Diplaying the added graphic in FeatureLayer is slower in bigger MapView container. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1368460#M83309</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/594389"&gt;@ericca&lt;/a&gt;,&amp;nbsp;thanks for posting your question here. Can you share a simplified, reproducible test-app for your use case? Hosted someplace like CodePen? This would help us debug the issue.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 17:24:05 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2024-01-10T17:24:05Z</dc:date>
    <item>
      <title>Diplaying the added graphic in FeatureLayer is slower in bigger MapView container.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1366299#M83255</link>
      <description>&lt;DIV&gt;Good day,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We are trying to load a graphic(polygon) to a FeatureLayer, but it loads slower as the size of the MapView container is increased. Please see attached video showing the issue. From the video, it seems like&amp;nbsp;size of the map has an effect on graphics rendering. Any suggestion on a possible fix or optimization?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;A few other details on the test&lt;/STRONG&gt;&amp;nbsp;(shown in the video):&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Same polygon is used. Only the size (height and width) of the has changed &lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Size&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Add/Load (Approx)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Delete/Unload&amp;nbsp;(Approx)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Default (half screen)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 sec&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1 sec&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Fullscreen&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;7 sec&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 sec&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="47px"&gt;Resized screen (smallest)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="47px"&gt;1 sec&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="47px"&gt;1 sec&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="47px"&gt;Resized screen (between default and full screen)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="47px"&gt;4 sec&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="47px"&gt;2 sec&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI&gt;&lt;LI&gt;Full Screen mode does not use the built-in feature of MapView. It's just a resized div because the built in full screen does not allow us to display divs on top of it which we needed to.&lt;/LI&gt;&lt;LI&gt;The graphic is added/removed client side using applyEdits({ addFeatures: [] }) and applyEdits({ deleteFeatures: []}) .&lt;/LI&gt;&lt;LI&gt;The graphic/polygon is optimized using this tool &lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/generalize" target="_blank" rel="noopener"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/generalize&lt;/A&gt; so the graphic is pretty light. The test graphic in the video is just around 4KB.&lt;/LI&gt;&lt;LI&gt;We are using arcgis.js v 4.22. Tried using higher version 4.23 to 4.27 and same slowness is experienced. Tried the latest version 4.28. It's more slower and had to move the map for the graphic to load/unload. Moving the map sort of refreshes it (see attached video to for v 4.28 issue). Is there a bug reported similar to this?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6344268203112w1112h540r411" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6344268203112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6344268203112w1112h540r411');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6344268203112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6344267724112w1112h540r762" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6344267724112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6344267724112w1112h540r762');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6344267724112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jan 2024 15:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1366299#M83255</guid>
      <dc:creator>ericca</dc:creator>
      <dc:date>2024-01-04T15:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying the added graphic in FeatureLayer is slower in bigger MapView container.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1368460#M83309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/594389"&gt;@ericca&lt;/a&gt;,&amp;nbsp;thanks for posting your question here. Can you share a simplified, reproducible test-app for your use case? Hosted someplace like CodePen? This would help us debug the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 17:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1368460#M83309</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2024-01-10T17:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Diplaying the added graphic in FeatureLayer is slower in bigger MapView container.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1370219#M83342</link>
      <description>&lt;P&gt;Hey Noah, here's the sample app -&amp;nbsp;&lt;A href="https://codepen.io/codestore/full/bGZgobE" target="_blank"&gt;https://codepen.io/codestore/full/bGZgobE&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleApp.gif" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91619i8D32F5000489886E/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleApp.gif" alt="SampleApp.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After trying the sample app on other machines, found out that the slowness is experienced on machine that doesn't have GPU (Graphics Processing Unit) or have the "&lt;SPAN&gt;Use hardware acceleration when available"&amp;nbsp;&lt;/SPAN&gt;off. On machine that has it, load time is almost the same for bigger or smaller map view. But when not available, load time for same polygon is slow in bigger map view. See video above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of our users does not have GPU on their machines. An upgrade would definitely address this, but please let me know if this is something that might be addressed in code. Thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ericca_0-1705335826035.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91622iDF539B94E1C3B4C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ericca_0-1705335826035.png" alt="ericca_0-1705335826035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 16:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/diplaying-the-added-graphic-in-featurelayer-is/m-p/1370219#M83342</guid>
      <dc:creator>ericca</dc:creator>
      <dc:date>2024-01-15T16:26:28Z</dc:date>
    </item>
  </channel>
</rss>

