whether it is possible to make the entire file is loaded into memory?
Opened this issue · 8 comments
lamo2k123 commented
whether it is possible to make the entire file is loaded into memory?
lamo2k123 commented
kevinhikaruevans commented
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.
lamo2k123 commented
loadMap
use start X & Y == 1, starting blocks did not 0?
kevinhikaruevans commented
Yeah it should probably start at 0
lamo2k123 commented
loading maps in memory exceeds the default heap node. What do we do with this?
kevinhikaruevans commented
Need to use Int8Array and Uint16Array I think. This commit had it loading: 1913140?diff=unified
We could also try increasing the memory with --max-old-space-size=
or by making a native library.
lamo2k123 commented
I think really it is necessary to return the typed arrays. I will correct.
lamo2k123 commented
then it will be necessary to see how much memory maps