Most recent activity
-
- 11 comments
- 153 views
-
-
-
-
-
hi,
i'm trying to read a large file (200kb).
(i just tested on the emulator and not the watch.)using : let a = require("Storage").readArrayBuffer("testÂ.map");
it loads but a.length is equal to 22053.if i try let a = require("Storage").read("test.map", 0, 200000);
it seems to work but i get a string and i'd rather like to turn my arraybuffer into various arrays.is there a size limit on readArrayBuffer and is there a reason for it ? do you know any kind of workaround i could use ?
thanks.
-
-
- 5 comments
- 356 views
-
i extracted my city's ways from openstreetmap. with some clever encoding (btw i laughed at Uint24Array but it's just what i needed) i'm actually below 200k. i'm amazed it's fast enough to display on the watch with little optimisations (1.5 secs to display). i still need to add the street names and port the low mem path algorithm to javascript and we might have a full gps. i'm not still 100% sure the path algorithm will fit the ram though, it's kind of a challenge. well, all the stuff i like.