333 Commits

Author SHA1 Message Date
Henrik Rydgard
0982a29293 Some texturecache code cleanup. Fix missing DIRTY_AMBIENT.
The latter fixes the blinking caustics in the tunnel in Vineta K in Wipeout Pure.
And surely other things.
2013-02-12 21:01:53 +01:00
Henrik Rydgard
6965b82c62 Set lastBoundTexture when creating a new one. 2013-02-12 20:12:08 +01:00
Henrik Rydgard
174b9749d7 Minor speedup to 16-bit texture color conversion. 2013-02-12 19:17:38 +01:00
Henrik Rydgård
156e22f9d2 Merge pull request #669 from raven02/master
Fix SW transform in Kidou_Senshi_Gundam_AGE_Universe_Accel
2013-02-12 08:03:06 -08:00
Henrik Rydgård
0bea5be5a5 Merge pull request #671 from unknownbrackets/texcache
Check the entire texture again, fixes wrong tex
2013-02-12 08:02:41 -08:00
Unknown W. Brackets
8e51ce1beb Check the entire texture again, fixes wrong tex.
Not sure why, but only on Android.  Also faster on Windows.
2013-02-12 07:55:44 -08:00
raven02
f5431dcb8b Fix SW transform in Kidou_Senshi_Gundam_AGE_Universe_Accel 2013-02-12 22:43:41 +08:00
Unknown W. Brackets
5486d0a3c1 Don't crash if currentList is NULL. 2013-02-12 01:12:32 -08:00
Unknown W. Brackets
fb7cabcccf Fix some missing GPUCommon state. 2013-02-12 01:06:11 -08:00
Unknown W. Brackets
5a20d9fc2a Clear vertex cache on savestates.
Just so it's an easy way.  We can remove later when we're sure.
2013-02-12 01:00:52 -08:00
Unknown W. Brackets
b548fe0aa6 Don't mark unreliable, just rehash each time.
This improves perf significantly without the bugs.
2013-02-12 00:17:12 -08:00
Unknown W. Brackets
1e1979b786 Simply don't cache < 100 verts for now.
Fixes wrong vertexes in a number of games.
2013-02-12 00:02:53 -08:00
Unknown W. Brackets
485bcac757 Actually, these are draws. Increase to 24. 2013-02-11 23:41:31 -08:00
Unknown W. Brackets
7d2c5c5041 Fix vai->numFrames never incrementing.
This made it never cache... oops.
2013-02-11 23:38:29 -08:00
Henrik Rydgard
f0c632131e Flush the draw buffer less. Default aniso to 0 on mobile, 8 on PC/the rest. 2013-02-11 19:03:11 +01:00
raven02
66417155c9 Add option to set AnisotropyLevel , default 4 2013-02-11 21:03:53 +08:00
Unknown W. Brackets
b9f61a9cf3 Don't blacklist an invalidated texture forever. 2013-02-10 23:29:44 -08:00
Unknown W. Brackets
7b9e90d434 OpenGL ES 2 buildfix again.
Sorry.
2013-02-10 18:20:34 -08:00
Unknown W. Brackets
4807a0b886 OpenGL ES2 buildfix.
Darn it.
2013-02-10 18:16:11 -08:00
Unknown W. Brackets
8a715f7b67 Don't forget a tex is unreliable until decimate. 2013-02-10 14:26:17 -08:00
Unknown W. Brackets
ca943f070c Don't delete cache invalidated textures.
Note: still decimates.
2013-02-10 14:20:59 -08:00
Unknown W. Brackets
f77a4985f1 Keep track of whether a texture is reliable or not. 2013-02-10 14:20:58 -08:00
Unknown W. Brackets
d56f3055b6 Don't check the power of two padding in texcache. 2013-02-10 14:20:58 -08:00
Unknown W. Brackets
f15c1839ac Use backoff to invalidate textures as well. 2013-02-10 14:20:58 -08:00
Unknown W. Brackets
634b9112e4 Cache vertexes based on frames not draws. 2013-02-10 14:20:57 -08:00
Unknown W. Brackets
5f3f3b8716 Speed up TextureCache::Invalidate() in debug. 2013-02-10 13:11:29 -08:00
Xele02
381bffaa47 Remove Qt define 2013-02-10 18:15:01 +01:00
Xele02
69b837f18b Add debug dialogs (DisAsm, Memory, VFPU).
New features : Breakpoint display, thread status, display list status
Update translation and start french translation
2013-02-10 17:33:34 +01:00
Sacha
b817e3bf26 Update max to std::max 2013-02-10 23:01:18 +10:00
Henrik Rydgard
87c9aa99c2 Let's specify MAX_LOD whether it works or not on gles 2... 2013-02-10 12:13:35 +01:00
Unknown W. Brackets
430139b12a Minimal revert of the GE-related interrupt changes.
Keep most of them, just revert using getList() which isn't cutting it
right now.  Fixes #595.
2013-02-10 02:03:02 -08:00
Unknown W. Brackets
74c2769ada Don't use an f suffix in GL shaders.
Error found in Hexyz Force.
2013-02-09 17:18:01 -08:00
Henrik Rydgard
db3f01044d Turn down texturecache logging a bit. Fix unfinished optimization. 2013-02-09 21:32:02 +01:00
Henrik Rydgard
5a43f3e0ff ZWRITEDISABLE should flush drawbuffer. Fixes road glitches in Ridge Racer and MotoGP. 2013-02-09 21:25:15 +01:00
Henrik Rydgard
aef2376b34 Merge branch 'master' into framebuffer-texture
Conflicts:
	GPU/GLES/TextureCache.cpp
2013-02-09 21:18:46 +01:00
Henrik Rydgard
ca347da99c Depth range should not be applied in through mode. Fixes sky in Wipeout Pure. 2013-02-09 20:53:32 +01:00
Henrik Rydgard
4868b5041c Fall back to glGenerateMipmap on OpenGL ES 2.0 for now, explanation in comments.
Enable 4x aniso by default, just because. This might be turned into an option later.
2013-02-09 20:21:10 +01:00
Henrik Rydgard
2fcea2a7e6 Fix mipmap-related slowdown caused by excessive texture decoding 2013-02-09 19:25:36 +01:00
Henrik Rydgard
bf7e5a4115 Mipmapping! Fixes issue #614 2013-02-08 00:04:34 +01:00
Henrik Rydgard
356f5788e1 Fix more UV issues 2013-02-08 00:04:01 +01:00
Henrik Rydgard
6b3ddae554 Fix UV error introduced in previous commit 2013-02-06 21:38:19 +01:00
Henrik Rydgard
6f9347178b Let's not declare vertex arrays as RELIABLE for now. 2013-02-06 20:45:25 +01:00
Henrik Rydgard
aaf00e047b Don't convert texcoords to float either. 2013-02-06 20:30:10 +01:00
Henrik Rydgard
8749ad0cb9 Warning fixes, very minor updates to shader generators. 2013-02-06 19:04:28 +01:00
Henrik Rydgard
80f4dc4e3a Fix issue with half sized skinned objects in SW transform. 2013-02-06 19:04:28 +01:00
Henrik Rydgard
0ca279e81d Don't hash vertex buffers every frame (TCP-style backoff up until every 16th)
Saves quite a bit time otherwise spent in CityHash, blowing the dcache every time.
2013-02-06 00:43:37 +01:00
raven02
b64edadb1b Fix missing menu button and character in The Legend Of Heroes - Trails In The Sky 2013-02-06 04:26:24 +08:00
Henrik Rydgard
12cccf0cc3 Don't need to flush on GE_CMD_OFFSET. 2013-02-05 18:02:11 +01:00
Henrik Rydgard
bf7ad9e1c9 Also don't convert 16-bit bone weights to float. Fixes a bug from the last similar change. 2013-02-05 18:02:10 +01:00
Henrik Rydgard
bdc467769e Some shader and vertex format optimizations 2013-02-05 01:37:00 +01:00