Comments (7)
Commit #f373a8b addresses this issue.
from freeboard-sk.
I have absolutely no idea how Angular works, but based on the cursory peek into the code it looks to me that you are looping over all the accumulated data for each incoming delta, instead of just updating the part that is actually updated. This not just for ais targets, but all data.
Do you have logic to remove stale ais targets? Deltas just stop for them when they go out of range.
from freeboard-sk.
It is best practise in Angular to use immutable
objects where possible to support accurate and efficient change detection, especially where arrays and objects are involved.
So in the example of AIS targets... the underlying Map object is updated in a targeted way but if used as the component data source change detection will not necessarily see the individual attribute changes and trigger an update.... hence building the current values into an immutable
array and providing it as the data source.
That being said I am continuing to tune the 'message processing' now that the major performance obstacle seems to be resolved. Once we are happy it is resolved I will add the removal of stale AIS targets
.
Just so we are all on the same page: Stale= no update in a prescribed period
, so open suggestions as to what is considered a reasonable prescribed period
as I know there are likely to be different opinions here.
from freeboard-sk.
Commit #de7ff8a streamlines onMessage
handling and also AIS target rendering.
Stale AIS targets (no update in the last hr) are removed.
from freeboard-sk.
Commit #17f26a6 should now close this.
Active = last update received < 3 mins
Inactive= last update received > 6 mins
Removed when last update received > 9 mins
from freeboard-sk.
This is sound practice for most use cases, but for a kiosk showing hourly updates worldwide from Marinetraffic or similar, I would like to have this user configurable.
from freeboard-sk.
Fixed and available in 1.0.0-0 pre-release.
from freeboard-sk.
Related Issues (20)
- Route display: Show waypoints HOT 2
- Provide means for deleting waypoints on touch screen HOT 2
- Use unified interface for route drawing and editing HOT 2
- Route drawing/editing: show total route length HOT 2
- Wind direction compass rose HOT 3
- Feature Request: Filter if shipID is filled HOT 5
- trails are not syncronized HOT 7
- Feature request: Provide a way to configure and mute sounds HOT 3
- AIS AtoN markers are disproportionally large HOT 1
- Consider making AIS target icons larger when zoomed close in HOT 8
- Feature Request: instance sharing of headless server HOT 2
- AIS target show 0ΒΊ heading on map HOT 5
- Lay Lines issues. HOT 1
- Lay Line issue. explained HOT 25
- Feature request: Could it be possible to remember follow vessel? HOT 10
- "Could not update resource undefined" on freshly drawn route save
- JSON parsing errors HOT 3
- Incorrect display of GPS position HOT 4
- VMG to waypoint HOT 2
- Feature Request: Sending waypoints to NMEA0183 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeboard-sk.