03-13-2019 10:11
03-13-2019 10:11
Hi,
Does Fitbit OS3.0 support Polyline?
If not how can you draw a graph other than a whole series of lines? Doing it this way is very resource hungry and JS runs out of 64k very quickly.
Any chance 64k will be increased to 128k in the near future?
03-14-2019 09:27
03-14-2019 09:27
No polyline support unfortunately, and there's only so much ram which can be squeezed on the device.
03-14-2019 09:35
03-14-2019 09:35
Thanks Jon,
Shame about the polyline, but 64k seems quite small, especially when the Ionic has 2.5Gbyte. I have run out of memory several times, had to go back and improve the code to reduce memory several times, but I think I am near the limit now. A polyline might have helped me save memory instead of having to use several lines and have to specify x1,y1 and x2,y2 for each.
03-14-2019 09:38
03-14-2019 09:38
Unfortunately storage isn't ram, but I do agree the limit is small.
Here are some great tips for optmizing your code. https://github.com/gaperton/ionic-views/blob/master/docs/optimization-guidelines.md
03-14-2019 10:13
03-14-2019 10:13
Thanks,
I have been using the memory API to measure the saving in memory after every change, although some changes which should save memory seem to add to it.
I have been thinking about variables, but noticed that there doesn't appear to be a way of declaring a variable as an Int, long Int or Float, other than how it is first used.
I have several arrays in my App, and all of them are declared without specifying the type. Several are arrays of integers (short Int), but if I don't declare them as such what is the default declaration?
If I don't specify an array of float, does it default to Float32 or Float64?