From acc062a2c149e2c656cb85257d124a3c672d32f5 Mon Sep 17 00:00:00 2001 From: "memberTwo.mb2" Date: Fri, 16 Jan 2009 16:28:33 +0000 Subject: More work on texture cache. Texture address is most of the time the cacheEntry index (as it was before r1871) to help CopyRenderTargetToTexture (fix it still a TODO). But not when texture format is tlut dependent to fix MP1 perf issue. Fix tlut overrun. Change TexDecoder_GetSafeTextureHash to fix Pokemon Colosseum and improve speed (we may need to tweak hardcoded value there -> TOTEST). Few notes too and I let my debug stuff for a while. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1880 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureDecoder.cpp | 44 +++++++++++++++++--------- 1 file changed, 29 insertions(+), 15 deletions(-) (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp') diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index a7a5356dce..a8e24cc948 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -16,6 +16,7 @@ // http://code.google.com/p/dolphin-emu/ #include "Common.h" +//#include "VideoCommon.h" // to get debug logs #include "CPUDetect.h" #include "TextureDecoder.h" @@ -67,29 +68,42 @@ int TexDecoder_GetTextureSizeInBytes(int width, int height, int format) u32 TexDecoder_GetTlutHash(const u8* src, int len) { + //char str[40000], st[20]; str[0]='\0';for (int i=0;i