A workaround for a big multidimensional array (Jagged Array) C#?
问题 I'm trying to initialize an array in three dimension to load a voxel world. The total size of the map should be ( 2048/1024/2048 ). I tried to initialize an jagged array of "int" but I throw a memory exception. What is the size limit? Size of my table: 2048 * 1024 * 2048 = 4'191'893'824 Anyone know there a way around this problem? // System.OutOfMemoryException here ! int[][][] matrice = CreateJaggedArray<int[][][]>(2048,1024,2048); // if i try normal Initialization I also throws the