I can provide my attempts at moving the chart update function to C++ as well if that is helpful. Do I need to move the chart update function to a separate thread? what is the recommended method for calling a function on a new thread from QML? Running the QML profiler shows a normal 60FPS Animation framerate, but then large (500ms) gap with no Animations after the Javascript function call to C++ to update the chart. This improved performance some, but I am still seeing sluggish UI performance after running the application for 10-30minutes. My first attempt to improve performance was to moving that to the C++ backend by creating a C++ class and functions to update the splineseries. I initially implemented the chart update logic in QML to append values to the splineseries. Is this just do to appending values to a large splineseries? I need the app to remain responsive for at least 60 minutes of operation (so the splineseries will have about 3600 points by the end). When I run the qml profiler, the Animations framerate starts around 60FPS, but after 10 minutes drops to 5FPS. The app works great for the first 10 minutes or so, but then the UI starts to get sluggish and unresponsive. I am writing an android app that reads an integer value at 1s intervals and uses a swipeview to display statistics and current status etc on one page, then plots the values over time as a splineseries on a chart on the next page.
0 Comments
Leave a Reply. |