16
Support / Re: Texture Limit
« on: February 26, 2014, 10:53:26 am »
Ok, thanks for the information. I'll let you know when I find out more about my specific problem.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
if (textureManager.containsTexture(name)) {
textureManager.replaceTexture(name, texture);
} else {
textureManager.addTexture(name, texture);
textureManager.replaceTexture(name, texture);
}
public long getMemoryUsage(boolean paramBoolean) {
long l = 0L;
for (int i = 0; i < this.textureCount; i++) {
int[] arrayOfInt1 = this.textures[i].texels;
int[] arrayOfInt2 = this.textures[i].alpha;
if (arrayOfInt1 != null) {
l += (arrayOfInt1.length << 2);
}
if (arrayOfInt2 != null) {
l += (arrayOfInt2.length << 2);
}
if ((!paramBoolean) && (arrayOfInt1 == null)) {
l += (this.textures[i].width * this.textures[i].height << 2);
}
}
return l;
}