80 |
} |
} |
81 |
|
|
82 |
IndirectMipzipManager indirectMipzipManager; |
IndirectMipzipManager indirectMipzipManager; |
|
int[] allocations = new int[] { |
|
|
/* |
|
|
2, 2, 0, 0, 0, 0, |
|
|
0, 0, 0, 0, 0, 0 |
|
|
*/ |
|
|
|
|
|
// Suitable for GF FX 5600, 128MB |
|
|
/* |
|
|
8, 8, 15, 20, 40, 80, |
|
|
200, 0, 0, 0, 0, 0 |
|
|
*/ |
|
83 |
|
|
84 |
4, 4, 12, 18, 30, 60, |
int[][] allocationSchemes = new int[][] { |
85 |
100, 200, 0, 0, 0, 0 |
{ |
86 |
|
// Suitable for GF4Go, 64MB |
87 |
|
4, 4, 12, 18, 30, 60, |
88 |
|
100, 200, 0, 0, 0, 0 |
89 |
|
}, { |
90 |
|
// Suitable for GF FX 5600, 128MB |
91 |
|
8, 8, 15, 20, 40, 80, |
92 |
|
200, 0, 0, 0, 0, 0 |
93 |
|
} |
94 |
}; |
}; |
95 |
|
|
96 |
|
int[] allocations; |
97 |
VirtualTexture[][] slotContents; |
VirtualTexture[][] slotContents; |
98 |
|
|
99 |
public PoolManager() { |
public PoolManager() { |
100 |
|
|
101 |
|
int scheme = Integer.parseInt(System.getProperty("fenfire.poolalloc", "1")); |
102 |
|
|
103 |
|
allocations = allocationSchemes[scheme]; |
104 |
|
|
105 |
|
|
106 |
indirectMipzipManager = new NonDeletingIndirectMipzipManager(); |
indirectMipzipManager = new NonDeletingIndirectMipzipManager(); |
107 |
indirectMipzipManager.init("COMPRESSED_RGB_S3TC_DXT1_EXT", |
indirectMipzipManager.init("COMPRESSED_RGB_S3TC_DXT1_EXT", |
108 |
2048, 2048); |
2048, 2048); |