c# - Multiple UI threads for page (speed up slow individual controls) -
i writing kiosk style app in uwp (windows iot core), use on embedded devices (e.g. pi3, etc.).
the device has several sensors, being output in real time various graphs/charts in single screen in app, i'm running performance problems. sensors being read in separate threads (using task.run() => {}), after analysis, doesn't seem cost cpu time @ all. seems updating graphs take time , isnt being distributed on cores, since there single ui thread. cpu usage doesnt past 25%, ui responsiveness gets slow.
i tried several optimizations (e.g. reducing amount of data points, etc.), helps, not enough. maybe there faster chart components out there (currently using telerik uwp component), looking approach.
so summary of question: there way have charts each render in separate ui threads (and distributed on other cores somewhat)?
can't speak strictly uwp experience of wpf having multiple ui threads hassle should avoid if @ possible (not speak of limitations introduce).
when dealing sensor data kind of polling rate looking at? many sensors have data rate far outstrips useful display user, possible have worker thread compute averaged value larger time frame , populate graph that? doubt users see of benefit updating them more 20 times second.
Comments
Post a Comment