Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Polyline

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?

Best Answer
0 Votes
4 REPLIES 4

No polyline support unfortunately, and there's only so much ram which can be squeezed on the device.

Best Answer
0 Votes

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.

Best Answer
0 Votes

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

 

 

Best Answer
0 Votes

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?

Best Answer
0 Votes