<?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: Dynamic animation of graphic's position by extrapolation in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125472#M2539</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/48868"&gt;@MarkBaird&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for these informations. I've managed to code a workaround, and I was wondering, how did you stress test the app in your blog post ? My app only seems to refresh my graphic's positions once every second, regardless of how many graphics I add.&lt;/P&gt;&lt;P&gt;I know for sure that my update thread runs more than once per second, but it seems like it is the ArcGIS API that is preventing me from going beyond that limit.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 17:06:00 GMT</pubDate>
    <dc:creator>Tone</dc:creator>
    <dc:date>2021-12-13T17:06:00Z</dc:date>
    <item>
      <title>Dynamic animation of graphic's position by extrapolation</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125344#M2537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to animate many graphics, mostly representing ships, knowing their kinematics (position, course, and speed). Course is defined by an angle in degrees, 0 being north, 90 is east, and so on, regardless of the ship's position. The map is 2D, the course of a ship is a straight line. Kinematics will be updated at some point during runtime.&lt;/P&gt;&lt;P&gt;What I'm gonna need is some way to extrapolate their positions over time, and render the new positions.&lt;/P&gt;&lt;P&gt;I've come across &lt;A href="https://developers.arcgis.com/android/java/sample-code/animate-3d-graphic/" target="_self"&gt;this example&lt;/A&gt; and&amp;nbsp;&lt;A href="https://proceedings.esri.com/library/userconf/proc14/tech-workshops/tw_972.pdf" target="_self"&gt; this PDF&lt;/A&gt; by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/48868"&gt;@MarkBaird&lt;/a&gt; and Vijay Gandhi which are very helpful for the rendering part.&lt;/P&gt;&lt;P&gt;For the extrapolation part, I'm wondering if their is anything built-in for this kind of usage, or if I'm gonna need to set up a Thread that will calculate the new positions of the ships for every frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you do it ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 10:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125344#M2537</guid>
      <dc:creator>Tone</dc:creator>
      <dc:date>2021-12-13T10:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic animation of graphic's position by extrapolation</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125354#M2538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/544543"&gt;@Tone&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen a few apps like the one you describe and a wrote a &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdks-blog/creating-and-updating-1000s-of-graphics-in-an/ba-p/1068807" target="_self"&gt;blog&lt;/A&gt; post on the subject a few months ago.&amp;nbsp; It is far more up to date than the PDF you linked to which is from 2014.&lt;/P&gt;&lt;P&gt;There is a &lt;A href="https://github.com/Esri/java-runtime-graphics-update" target="_self"&gt;git&lt;/A&gt; repository which has a working app showing an example of how this is done too.&amp;nbsp; In this case it was a simulation of vehicles based on route data in csv files.&amp;nbsp; It may follow a similar pattern to what you need to implement.&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 10:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125354#M2538</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-12-13T10:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic animation of graphic's position by extrapolation</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125472#M2539</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/48868"&gt;@MarkBaird&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for these informations. I've managed to code a workaround, and I was wondering, how did you stress test the app in your blog post ? My app only seems to refresh my graphic's positions once every second, regardless of how many graphics I add.&lt;/P&gt;&lt;P&gt;I know for sure that my update thread runs more than once per second, but it seems like it is the ArcGIS API that is preventing me from going beyond that limit.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 17:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125472#M2539</guid>
      <dc:creator>Tone</dc:creator>
      <dc:date>2021-12-13T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic animation of graphic's position by extrapolation</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125483#M2540</link>
      <description>&lt;P&gt;In the app in in my &lt;A href="https://github.com/Esri/java-runtime-graphics-update" target="_self"&gt;git&lt;/A&gt; repository I'm refreshing 5000 graphics every 20ms.&amp;nbsp; I've managed to get it up to 50000 before I started to see a drop in performance.&lt;/P&gt;&lt;P&gt;If you pull the source code for the demo app and run it, you will see it performs quite well.&lt;/P&gt;&lt;P&gt;Something is wrong if you can't refresh every second.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a close look at how I've got this working and see if this can be applied to your own app.&amp;nbsp; You can definitely improve on the 1second refresh rate you have at the moment.&lt;/P&gt;&lt;P&gt;If you have some code you can share I can take a look at it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 17:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/dynamic-animation-of-graphic-s-position-by/m-p/1125483#M2540</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-12-13T17:24:01Z</dc:date>
    </item>
  </channel>
</rss>

