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)
- Add support for skipping onboarding screen HOT 10
- AIS targets all have HOT 6
- VMG converting to knots is incorrect HOT 1
- User configurable option for temporal resolution on tracks HOT 7
- Host resource consumption HOT 14
- Lock zoom to map - Functionality request HOT 1
- Unable to add routes/waypoints HOT 3
- Make colour of AIS targets adjustable as it's not legible with satellite imagery HOT 2
- Load GPX not working HOT 2
- SK bootup error about Freeboad-SK permission HOT 5
- Cannot set Anchor Watch HOT 3
- Anchor Watch looping raising notifcations HOT 2
- Feature Request: Add Timestamp in the notification HOT 1
- unable to open playback connection HOT 1
- next Waypoint name on Route? HOT 2
- Longer timer for 'Other vessels' settings HOT 2
- Pypilot HOT 4
- Unable to Upload waypoints GPX HOT 5
- Excellent function "constrain map" button doesn't toggle
- Charts coverage overview. HOT 10
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.