Hello,
Right now I am running a simple application with a relatively simple GUI. However, I have quite a few of the TMS Instrumentation controls on the main form of the GUI. I have 3 CircularGauges, 3 LinearGauges, 2 charts and a progress bar. All of these are being updated at live time based off a SQLite database and using livebindings to the fields in the database. I noticed after I have all the gauges and charts linked up, that the GUI or refresh lag was starting to build up.
My question would be, is LiveBindings a good way to handle these gauges or is doing it manually a much better solution? Right now I am just using a timer that updates each gauge every 500ms as a test. I am changing the value of the gauges and after each gauges is updated, doing a single commit to the database off each gauges current value. I can't really tell if the SQLite database is just slow, or if I am running into hardware limitations.
This application runs great on my desktop but I have a rather beefy desktop. When I run it on my tablet, that is when the lag starts happening. However, the application is truly only using about 24% of my CPU and 45MB of RAM. I am trying to make this as seemless as possible. If you need code samples, I would gladly give some of how it is running. Also, I added a Camera feed, but that does not seem to add to the lag much, it just adds more memory usage. I would like to use our hardware's full potential if possible and thought about multi-threading to make this run smoother.
All in all, does having 8 of the controls updating using LiveBindings rather quickly cause lag? Is there a better way to handle it? Thank you all for your help.
Sean M.