summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureDecoder.cpp
diff options
context:
space:
mode:
authorRodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com>2010-04-03 22:22:55 +0000
committerRodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com>2010-04-03 22:22:55 +0000
commita4736f7f6b1ba97cdae469d675e583fe93c43d41 (patch)
tree88d469197cf26a1ff37d18f7fd8d866ff4ff1840 /Source/Core/VideoCommon/Src/TextureDecoder.cpp
parent962fef0626537315faf63b8f0e48bb6fba9b8211 (diff)
back to limit vps instead of fps as this fix fps limit and now it works correctly as now the sync between the plug in and the core is almost correct.
fixed fps display in the top bar, now it shows the real fps of the game. some code clean up and some corrections to make everything work right in the reference renderer. multiples xfb now is broken even in single core as is was not an error caused by dual core, i really dono where the error is,everything looks correct but if you test a game with multiples xfb or the ipl you will see the error. ector if you can take a look at he code and throw me some ideas i'll thank you. please test. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5272 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureDecoder.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp
index f9565d7f6f..ecd78ba16b 100644
--- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp
+++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp
@@ -88,43 +88,6 @@ int TexDecoder_GetTextureSizeInBytes(int width, int height, int format)
return (width * height * TexDecoder_GetTexelSizeInNibbles(format)) / 2;
}
-u32 TexDecoder_GetHash32(const u8 *src, int len, u32 samples)
-{
- const u32 m = 0x5bd1e995;
- const int r = 24;
- u32 h = len;
- const u32 * data = (const u32 *)src;
- u32 Step = (len/4);
- const u32 * End = data + Step;
- const u8 * uEnd = (const u8 *)End;
- if(samples == 0) samples = Step;
- Step = Step / samples;
- if(Step < 1) Step = 1;
- while(data < End)
- {
- u32 k = data[0];
- k *= m;
- k ^= k >> r;
- k *= m;
- h *= m;
- h ^= k;
- data+=Step;
- }
-
- switch(len & 3)
- {
- case 3: h ^= u32(uEnd[2]) << 16;
- case 2: h ^= u32(uEnd[1]) << 8;
- case 1: h ^= u32(uEnd[0]);
- h *= m;
- };
-
- h ^= h >> 13;
- h *= m;
- h ^= h >> 15;
- return h;
-}
-
#ifdef _M_X64
u64 TexDecoder_GetHash64(const u8 *src, int len, u32 samples)
{