{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1457","repository_url":"https://api.github.com/repos/PhilJay/MPAndroidChart","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1457/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1457/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1457/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1457","id":132579449,"number":1457,"title":"Realtime Line Chart Laggy after 10 mins of Graphing","user":{"login":"KE7JLM","id":5344011,"avatar_url":"https://avatars.githubusercontent.com/u/5344011?v=3","gravatar_id":"","url":"https://api.github.com/users/KE7JLM","html_url":"https://github.com/KE7JLM","followers_url":"https://api.github.com/users/KE7JLM/followers","following_url":"https://api.github.com/users/KE7JLM/following{/other_user}","gists_url":"https://api.github.com/users/KE7JLM/gists{/gist_id}","starred_url":"https://api.github.com/users/KE7JLM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KE7JLM/subscriptions","organizations_url":"https://api.github.com/users/KE7JLM/orgs","repos_url":"https://api.github.com/users/KE7JLM/repos","events_url":"https://api.github.com/users/KE7JLM/events{/privacy}","received_events_url":"https://api.github.com/users/KE7JLM/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T00:47:50Z","updated_at":"2016-02-10T08:41:24Z","closed_at":"2016-02-10T08:41:24Z","body":"Hey guys, I am using a Realtime line chart to graph csv data coming in from an Arduino with a Bluetooth adapter. Everything works great but I am getting some lag in the data and overall poor system performance when graphing the data. The data is coming in at about 90Hz. Over time it because complete unusable and will freeze my Note4. I pretty much followed the MPChart example code. I set DragEnable to false, I also set TouchEnable to false. I don't care about the old data and I am only graphing so we can get a visual representation of the data. I suspect the chart is storing all of that old data and its running out of memory. \r\n\r\nMy question for you guys is, how do I make it not lag up over time? I can't seem to find another options relevant to this issue. \r\n\r\nThanks in advance. "},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/182253649","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1457#issuecomment-182253649","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1457","id":182253649,"user":{"login":"PhilJay","id":6759734,"avatar_url":"https://avatars.githubusercontent.com/u/6759734?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilJay","html_url":"https://github.com/PhilJay","followers_url":"https://api.github.com/users/PhilJay/followers","following_url":"https://api.github.com/users/PhilJay/following{/other_user}","gists_url":"https://api.github.com/users/PhilJay/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilJay/subscriptions","organizations_url":"https://api.github.com/users/PhilJay/orgs","repos_url":"https://api.github.com/users/PhilJay/repos","events_url":"https://api.github.com/users/PhilJay/events{/privacy}","received_events_url":"https://api.github.com/users/PhilJay/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T08:41:24Z","updated_at":"2016-02-10T08:41:24Z","body":"Well, 90Hz is a pretty fast rate, and over a time of 10 minutes this means there are 54.000 values in the chart. That amount of data obviously takes it's toll on the library and on the operating system.\r\n\r\nI suggest you find a way to either reduce the data rate, or to reduce the total amount of values (e.g. by deleting old ones or doing some filtering...)."}}