Commit Graph
2056 Commits
Author SHA1 Message Date
Unknown W. Brackets d86253cef2 Buildfix for Linux. 2013-05-05 19:58:59 -07:00
Peter Thoman fa8df54391 Pre-compute all weights and sums for bicubic scaling 2013-05-05 21:59:41 +02:00
Peter Thoman 073787430e Fixed bicubic scaling, added SSE 4.1 version 2013-05-05 21:59:41 +02:00
Sacha c85b5782a0 Buildfix for BHarmattan and Blackberry. Was missing math.h 2013-05-05 20:18:31 +10:00
Henrik Rydgård 81363074a5 Merge pull request #1676 from unknownbrackets/texcache
Add back second texcache, improve perf, add memory check
2013-05-05 00:44:14 -07:00
Unknown W. Brackets bd692ddf66 Check for low GPU memory and try to disable cache.
This may help with phones and even desktops without much VRAM/RAM.
Normally OpenGL will copy between them, though, so it should not happen
often, especially not on desktops.
2013-05-05 00:00:22 -07:00
Unknown W. Brackets 5b970d76e3 Use SSE2 in the texture hashing function.
Speeds it up significantly, but only when it's called a lot.
2013-05-04 21:39:12 -07:00
Unknown W. Brackets 02c88b9517 Add a secondary texture cache again.
This time, only used when invalidations happen several times, but not
too often, and still hashes the entire texture.
2013-05-04 20:33:31 -07:00
Unknown W. Brackets 608f469b54 Minor cleanup to tex hash and clut check. 2013-05-04 19:16:52 -07:00
Peter Thoman e7b382dc57 __forceinline doesn't make a measureable difference here, so no need to make the code nonstandard 2013-05-05 01:49:16 +02:00
Peter Thoman f49cc04c7d Merge branch 'master' of https://github.com/hrydgard/ppsspp
Conflicts:
	Windows/resource.h
2013-05-05 01:38:47 +02:00
Peter Thoman bfe1cb9ca2 Added bicubic texture filtering and hybrid bicubic texture filtering options 2013-05-05 01:27:15 +02:00
Unknown W. Brackets 353528b63d When displaying an FBO, pick the most recent used.
Fixes flicker in Jewel Summoner, and black screen in Shadow of Destiny.
2013-05-04 15:36:24 -07:00
Unknown W. Brackets fd0c368037 Fix texfunc disasm missing color doubling. 2013-05-04 15:36:23 -07:00
Unknown W. Brackets a0e6917ee8 If unspecified, default normal to 0, 0, 1.
Fixes Trails in the Sky buttons and improves Kingdom Hearts lighting.
2013-05-04 13:23:50 -07:00
Henrik Rydgård 5c2b337526 Merge pull request #1652 from PeterTh/master
Add Texture Deposterization
2013-05-03 08:06:27 -07:00
Sacha 279158a010 Buildfix (Harmattan and Blackberry): stdlib is required for abs(int). 2013-05-04 00:32:25 +10:00
Peter Thoman 3ede2b69cb Drop std:: from bind in deposterize, I want to avoid breaking builds again if at all possible 2013-05-03 16:26:02 +02:00
Peter Thoman 3c2ee6bd65 Added texture deposterization option 2013-05-03 16:26:02 +02:00
Sacha ac9f271078 Buildfix. Was meant to be from unsigned int to u8. 2013-05-04 00:08:38 +10:00
Sacha e0ef9a9505 Buildfix (all C++0x compilers). Drop the std::, do a static_cast for narrowing conversion as required by C++0x spec. 2013-05-04 00:06:41 +10:00
Peter Thoman f4f0a958d3 Applied loop tiling/strip mining to algorithms where it makes sense 2013-05-03 14:38:24 +02:00
Peter Thoman fa8250ba12 Avoid scaling empty and flat textures 2013-05-03 13:35:24 +02:00
Peter Thoman 75bbe9df9f Clean up (and slightly speed up) blinear scaling 2013-05-03 13:17:36 +02:00
Henrik Rydgård 655e7dbfbb Merge pull request #1640 from PeterTh/master
Texture scaling improvements
2013-05-03 01:37:39 -07:00
Henrik Rydgård 1a6c5daf0c Merge pull request #1646 from unknownbrackets/texcache
Minor texture cache optimizations + blend fix
2013-05-03 01:35:20 -07:00
Peter Thoman 7d2fd0ea31 Removed Bilinear texture filtering option 2013-05-03 10:29:29 +02:00
Unknown W. Brackets 9537be9ebb Don't double src alpha when it's not safe to do so.
Fixes LittleBigPlanet vignette.
2013-05-03 01:10:59 -07:00
Unknown W. Brackets df65bb40ac Avoid copying a tex if the PSP format is perfect. 2013-05-03 01:02:00 -07:00
Unknown W. Brackets 57c7b21640 Convert colors before applying clut, not after.
No reason to build it wrong and fix it afterward.
2013-05-03 00:12:42 -07:00
Sacha 8cb0423f32 Avoid name collision with ThreadPool on Windows hosts. Fixes all Linux/Unix cross-compiles from Windows, including Harmattan and Blackberry. 2013-05-03 16:31:53 +10:00
Peter Thoman edf94091db Final Hybrid scaling adjustments & remove debug output 2013-05-03 02:51:07 +02:00
Peter Thoman d8df8a6796 Merge branch 'master' of https://github.com/hrydgard/ppsspp
Conflicts:
	Core/Config.cpp
	Core/Config.h
2013-05-03 00:24:03 +02:00
Henrik Rydgard 6d66577f17 Don't write to transformedvertex.color1[4], it doesn't exist. 2013-05-02 20:18:46 +02:00
Peter Thoman e352432aab Hybrid scaling works now 2013-05-02 20:05:41 +02:00
Peter Thoman d70641d3f2 Manual merge 2013-05-02 14:25:18 +02:00
Peter Thoman 7ae3894365 Added functionality for hybrid scaling (not yet working) 2013-05-02 14:09:46 +02:00
Henrik Rydgard 42a4a1e4ba Brightness fix for scaled RGB565 and RGB5551 textures. Fix broken color conversion in DecodeTexture (which is not normally used). 2013-05-02 10:59:45 +02:00
Henrik Rydgard a125da7af6 Don't scale textures in "kernel" memory (like the 2048x2048 PPGe texture). 2013-05-02 10:18:26 +02:00
Sacha a9529f831d Hack for Meego. For some reason it's not compiling ThreadPool.cpp 2013-05-02 17:34:57 +10:00
Sacha 6a2a308069 Buildfix for Symbian. 2013-05-02 17:06:09 +10:00
Unknown W. Brackets c73657e39a Buildfix for iOS and Android. 2013-05-01 23:31:18 -07:00
Sacha ae9490ad30 Use boost to do C++11 features on Symbian. Use namespaces. 2013-05-02 15:46:41 +10:00
Peter Thoman 3e5023ea97 Refactored Texture Scaling, changed options & gui to separately select scaling level and method 2013-05-01 23:55:34 +02:00
Henrik Rydgård dcff4970bd Merge pull request #1616 from PeterTh/master
Add global threadpool, use it for texture scaling parallelization
2013-05-01 11:51:01 -07:00
Peter Thoman 1f7a3776b3 Only scale textures which were never invalidated 2013-05-01 20:31:57 +02:00
Unknown W. Brackets d412cf5c64 Approximate better with two fixed blend colors.
Having one be constant, or having a nearby blend, is better than fixing
both to 1.0 or 0.0.
2013-05-01 08:00:52 -07:00
Peter Thoman e19442a8c1 Eliminated C++11 lambdas 2013-05-01 16:31:28 +02:00
Peter Thoman 95e6a5c4ea Adjusted Texture Scaler to use global threadpool 2013-05-01 14:12:10 +02:00
Peter ThomanandPeter Thoman af68180319 Parallelized texture scaling 2013-05-01 14:12:09 +02:00