mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-15 06:58:37 +02:00
1) fix texture caching issue (ie. MP1 "Main menu" fps drop).
2) "fix" Pokemon Coloseum font issue in SafeTextureCache mode. We should kill the unsafe one. TODO: get why it works :p 3) readjust FAKE_GP_WATCHDOG_PERIOD for omega's ZTP to boot in DC. Too late to split, sorry. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1871 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -65,11 +65,12 @@ int TexDecoder_GetTextureSizeInBytes(int width, int height, int format)
|
||||
return (width * height * TexDecoder_GetTexelSizeInNibbles(format)) / 2;
|
||||
}
|
||||
|
||||
u32 TexDecoder_GetTlutHash(const u16 *src, int len)
|
||||
u32 TexDecoder_GetTlutHash(const u8* src, int len)
|
||||
{
|
||||
u32 hash = 0xbeefbabe;
|
||||
for (int i = 0; i < len / 2; i += 2) {
|
||||
hash = _rotl(hash, 17) ^ ((u32 *)src)[i];
|
||||
for (int i = 0; i < len ; i++) {
|
||||
hash = _rotl(hash, 7) ^ src[i];
|
||||
hash += 7;
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
Reference in New Issue
Block a user