hrydgard/ppsspp — pull request #1276 by unknownbrackets (2013-04-13 23:43:31+00:00)
Title: Improve performance of indexed texture reading

This improves the performance of Crimson Gem Saga by a little over 10% on Windows release.

The optimal case seems to be the most common one: no clut shift, mask, or offset. Knowing that in advance, we can read indexed textures with ~20% of the effort based on a profile. Actually, there are ways to optimize even the other cases of course, but I don't think I've seen them in any games so far.

Additionally, eats some cycles in sceKernelGetSystemTimeWide() (which doesn't seem free.) This mostly just makes the game call it less. Still need to try to make these counts more accurate, but I don't suppose this is very far off.

-[Unknown]