dolphin/Source/Core/VideoCommon/Src
Rodolfo Osvaldo Bogado 02189ec5e0 Simplify the params for the safe texture cache
after some test the more relevant parameters were the color samples and the tlut max size.
so delete the rest of the parameters and define 3 modes:
Safe : the two values are set to 0 meaning all the texture data and all the tlut data are hashed this is the most correct and slowwwwwwwwwww way
Normal: 37 samples are taken from the color textures an the firs 4096 bytes of the tlut are hashed, is a lot faster than safe mode but in some games i observe small glitches.
Fast: 8 samples are taken from the color textures an the first 1024 bytes are hashed from the tlut, is a little slower than the unsafe cache but at least all the games i tested have correct text output and fast frame rate. the glitches in dinamyc color textures are more noticeable in this mode
this values could be improved, if you find a better combination please post it and the game it fixes and i will update the source.
for the moment, as my time is limited by a lot of work, only implemented the d3d gui, if someone can implement the opengl gui will be a lot of help for me.
please test a lot and let me know the results.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5135 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-26 12:54:08 +00:00
..
OpenCL Fix crash when stopping and starting a game with OpenCL enabled 2010-02-13 10:09:54 +00:00
AVIDump.cpp Linux global build. At least the basic footwork is done here. 2010-02-02 21:56:29 +00:00
AVIDump.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
BPFunctions.h D3D: Fix some texture wrapping issues by setting the texture state for every texture used at draw time. Hopefully there will not be a noticable slowdown, thanks to the state caching. Also some minor cleanup. Should fix issues like repeated shadows. TODO: In theory it should have worked without this, so I should investigate why this change was needed. 2010-01-12 23:40:30 +00:00
BPMemory.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
BPMemory.h fix Jit64::fmrx (well, fixes soul calibur 2 SPS at least) cottonvibes wrote this :) 2009-10-29 04:01:31 +00:00
BPStructs.cpp D3D: Fix some texture wrapping issues by setting the texture state for every texture used at draw time. Hopefully there will not be a noticable slowdown, thanks to the state caching. Also some minor cleanup. Should fix issues like repeated shadows. TODO: In theory it should have worked without this, so I should investigate why this change was needed. 2010-01-12 23:40:30 +00:00
BPStructs.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
CommandProcessor.cpp Fixed a stupid error left by me. 2010-01-16 22:37:38 +00:00
CommandProcessor.h Fixed Issue 1711 (a bug that prevents some games from booting) 2009-12-31 16:25:12 +00:00
CPMemory.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
CPMemory.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
DataReader.h D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
Fifo.cpp Reverted the FIFO thread change 2010-01-23 21:06:12 +00:00
Fifo.h 1. This should fix Issue 1625 (Bizarre Auto Frame Limit) 2010-01-07 20:01:41 +00:00
HiresTextures.cpp Revert commit 5105 until we sort out how we want this to work in linux. 2010-02-22 16:10:08 +00:00
HiresTextures.h DX9: - Add hires texture loading. 2009-12-22 06:47:42 +00:00
ImageWrite.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
ImageWrite.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
IndexGenerator.cpp Sps fixed in all the games tested, code cleanup and reordering 2009-10-06 14:24:10 +00:00
IndexGenerator.h Sps fixed in all the games tested, code cleanup and reordering 2009-10-06 14:24:10 +00:00
LookUpTables.h Don't use lookup tables. It's better to use CPU registers and reduce memory accesses. 2009-07-30 20:29:52 +00:00
memcpy_amd.cpp GL Vertex loader moved to VideoCommon. 2008-12-26 13:09:16 +00:00
NativeVertexFormat.h D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
NativeVertexWriter.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
NativeVertexWriter.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
OnScreenDisplay.cpp Kill the last timeGetTime calls. 2010-01-21 21:27:52 +00:00
OnScreenDisplay.h Moving more things out of GL into VideoCommon... 2009-09-03 20:37:35 +00:00
OpcodeDecoding.cpp Fix crash when stopping and starting a game with OpenCL enabled 2010-02-13 10:09:54 +00:00
OpcodeDecoding.h I hope you all like this. Changes: 2009-10-02 14:03:07 +00:00
PixelEngine.cpp small code cleanup: rename "dual core" stuff to CPUThread, bOnThread, etc. 2009-10-23 15:26:35 +00:00
PixelEngine.h Moving pixel engine and command processor from core to video common. This will break previous save states. Adds decoding single pixels to texture decoder. 2009-10-10 21:19:39 +00:00
PixelShaderGen.cpp Systematically eliminating compiler warnings. 2010-02-24 03:38:36 +00:00
PixelShaderGen.h Shader Disk Cache implementation for D3D. Saves generated shaders on disk. Eliminates "freeze jerks" in D3D plugin the _second_ and later times you play something.... not much to do about the first time. The D3D shader compiler is just slow. 2010-01-17 17:44:09 +00:00
PixelShaderManager.cpp NSMB background fix. Fixes 1654. 2009-12-21 20:30:01 +00:00
PixelShaderManager.h a minor cleanup in xf registers, an some small bug fixes. please test and give me feedback 2009-11-19 02:28:41 +00:00
Profiler.cpp Kill the last timeGetTime calls. 2010-01-21 21:27:52 +00:00
Profiler.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
Render.h Some code clean up, and take care of some compiler warnings. 2010-02-20 04:18:19 +00:00
SConscript Delete the misnamed GlobalControl.cpp/h, move the (ugly) projection hack code that was there into VertexShaderManager where it belongs. 2009-12-05 13:56:23 +00:00
Statistics.cpp Some tiny fix, fixed a crash when activating "overlay some statistics" on OGL plugin (which actually overlays a whole book + 400 chapters of statistics and, indeed, overflows and crash) + memleak fix on LLE plugin and little fix on GBAlink shutdown code. 2010-02-23 01:57:26 +00:00
Statistics.h D3D various: "Safe texture cache" option, texture replace instead of destroy/create when possible, a commented out "optimization" that didn't speed things up (use DrawPrimitive instead of DrawIndexedPrimitive when possible), reduce code duplication in Flush(), don't periodically clean out the shader caches since it's not really beneficial - shaders are cheap to keep. some code cleanup. 2009-09-19 13:14:55 +00:00
TextureConversionShader.cpp Small fixes: 2010-01-19 15:00:45 +00:00
TextureConversionShader.h Shader Disk Cache implementation for D3D. Saves generated shaders on disk. Eliminates "freeze jerks" in D3D plugin the _second_ and later times you play something.... not much to do about the first time. The D3D shader compiler is just slow. 2010-01-17 17:44:09 +00:00
TextureDecoder.cpp Reverted because of some processor and performance issue. I will develop in a branch about SSSE3/SSE4.1. 2010-02-24 23:58:48 +00:00
TextureDecoder.h First a bugfix: 2010-02-23 21:52:12 +00:00
VertexLoader_Color.cpp Got rid of all of jp's ////////////////////////////// lines (nearly 500 of them)! 2009-09-02 21:00:45 +00:00
VertexLoader_Color.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoader_Normal.cpp D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
VertexLoader_Normal.h D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros Melee. misc tiny things 2009-09-13 21:18:04 +00:00
VertexLoader_Position.cpp Reverted because of some processor and performance issue. I will develop in a branch about SSSE3/SSE4.1. 2010-02-24 23:58:48 +00:00
VertexLoader_Position.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoader_TextCoord.cpp Reverted because of some processor and performance issue. I will develop in a branch about SSSE3/SSE4.1. 2010-02-24 23:58:48 +00:00
VertexLoader_TextCoord.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoader.cpp Reverted because of some processor and performance issue. I will develop in a branch about SSSE3/SSE4.1. 2010-02-24 23:58:48 +00:00
VertexLoader.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
VertexLoaderManager.cpp Frameskipping! Complete with GUI! Even my most naive approach resulted in great speeds, even with graphic-intensive games such as Pikmin. 2009-08-08 01:39:56 +00:00
VertexLoaderManager.h make DLCache compile on linux, required some weird casting so tell me 2009-08-10 06:18:10 +00:00
VertexShaderGen.cpp Disable change made in 4801. 2010-01-18 06:32:16 +00:00
VertexShaderGen.h Shader Disk Cache implementation for D3D. Saves generated shaders on disk. Eliminates "freeze jerks" in D3D plugin the _second_ and later times you play something.... not much to do about the first time. The D3D shader compiler is just slow. 2010-01-17 17:44:09 +00:00
VertexShaderManager.cpp minor code cleanup 2009-12-05 14:01:29 +00:00
VertexShaderManager.h Delete the misnamed GlobalControl.cpp/h, move the (ugly) projection hack code that was there into VertexShaderManager where it belongs. 2009-12-05 13:56:23 +00:00
VideoCommon.h D3D various: "Safe texture cache" option, texture replace instead of destroy/create when possible, a commented out "optimization" that didn't speed things up (use DrawPrimitive instead of DrawIndexedPrimitive when possible), reduce code duplication in Flush(), don't periodically clean out the shader caches since it's not really beneficial - shaders are cheap to keep. some code cleanup. 2009-09-19 13:14:55 +00:00
VideoConfig.cpp Simplify the params for the safe texture cache 2010-02-26 12:54:08 +00:00
VideoConfig.h Simplify the params for the safe texture cache 2010-02-26 12:54:08 +00:00
VideoState.cpp Moving pixel engine and command processor from core to video common. This will break previous save states. Adds decoding single pixels to texture decoder. 2009-10-10 21:19:39 +00:00
VideoState.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
XFBConvert.cpp Woops, that is why getting work group size failed 2009-10-07 07:44:35 +00:00
XFBConvert.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
XFMemory.cpp Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00
XFMemory.h a minor cleanup in xf registers, an some small bug fixes. please test and give me feedback 2009-11-19 02:28:41 +00:00
XFStructs.cpp a minor cleanup in xf registers, an some small bug fixes. please test and give me feedback 2009-11-19 02:28:41 +00:00
XFStructs.h Now ALL copyright dates are fixed to the legally correct year: The year in which the project began. Now we don't have to change it every year :) 2009-07-28 21:32:10 +00:00