Overv / WebCraft

Minecraft clone written in Javascript.
zlib License
387 stars 186 forks source link

Camera drops under world #62

Open EkBass opened 1 year ago

EkBass commented 1 year ago

Hi.

Indeed this is cool one. Really love it and im actually considering to use this in my game.

I noticed, that once i made map bigger there is prolly some memory etc leak somewhere. Once i made map size 128, 128, 16 it took a while to render. Thats fine. But after that i checked my email which took few minutes. Then when i returned to game, the camera was falling down and i only did see the bottom of the world.

Not figured out, is this due the program follows mouse even when its not in open tab or does is just run with memory problems then.

Hmm...now i actually tested it with normal map size and it keeps doing it. Now my camera was down for 2 blocks though i left it on normal ground level. Didnt move it at all.