cheahjs / TerrariaAPI-Server

Fork is now over at https://github.com/NyxStudios/TerrariaAPI-Server
https://tshock.co
32 stars 24 forks source link

Memory reduction #26

Closed MarioE closed 11 years ago

MarioE commented 11 years ago

This saves quite a bit of memory. The Map array, by itself, apparently takes upwards of 80 MB: 4mv2k

MarioE commented 11 years ago

The float[,] and byte[,] arrays in Lighting took up a considerable bit of memory as well: (1152 + 2_45 + 10) * (864 + 2_45 + 10) * (4 + 4 + 4 + 4 + 4 + 4 + 1 + 1 + 1) = ~31MB.

Olink commented 11 years ago

I dont really think you need to pull request if you are removing client code, but if you want to feel free. :+1: