Improve performance of AllApps for large numbers of apps.

This commit is contained in:
Jason Sams 2009-11-20 13:16:41 -08:00
parent 418928e9d0
commit 84bfa565b3
1 changed files with 3 additions and 2 deletions

View File

@ -378,10 +378,11 @@ void drawStrip(float row, float column, int isTop, int iconNum, float p)
offset = positionStrip(row + 0.73f, column, isTop, p, 1);
}
if (offset < -20) return;
if (offset > 200) return;
bindTexture(NAMED_PFTexMip, 0, loadI32(ALLOC_LABEL_IDS, iconNum));
offset = clamp(offset, 0, 199 - 20);
//drawSimpleMeshRange(NAMED_SMMesh, offset * 6, 20 * 6);
drawSimpleMesh(NAMED_SMMesh);
drawSimpleMeshRange(NAMED_SMMesh, offset * 6, 20 * 6);
//drawSimpleMesh(NAMED_SMMesh);
}
void drawTop(float rowOffset, float p)