Open lamo2k123 opened 7 years ago
Maybe.
Working on it now, but it looks like it runs out of memory if I use native objects.
I think I can optimize it with Uint8Array (for Z) and Uint16Array (for IDs) and it might work.
loadMap
use start X & Y == 1, starting blocks did not 0?
Yeah it should probably start at 0
loading maps in memory exceeds the default heap node. What do we do with this?
Need to use Int8Array and Uint16Array I think. This commit had it loading: https://github.com/kevinhikaruevans/uodatareader/commit/1913140e6368e69e18429b2f2d1306005a2d7a39?diff=unified
We could also try increasing the memory with --max-old-space-size=
or by making a native library.
I think really it is necessary to return the typed arrays. I will correct.
then it will be necessary to see how much memory maps
@kevinhikaruevans