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
This commit is contained in:
Rodolfo Osvaldo Bogado
2010-04-03 22:22:55 +00:00
parent 962fef0626
commit a4736f7f6b
11 changed files with 39 additions and 86 deletions

View File

@ -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)
{