Commit graph

273 commits

Author SHA1 Message Date
raven02
9e10239c9b Revert part of #3108 to avoid rendering garbage memory 2013-08-19 21:39:56 +08:00
Unknown W. Brackets
e96a825743 Align non-compressed textures to 16 bytes. 2013-08-18 22:43:26 -07:00
Unknown W. Brackets
52f1de8f1d Use xxHash instead of CityHash, it's faster.
At least on Windows it's definitely got the edge.
2013-08-16 23:48:42 -07:00
raven02
fad8b77044 Merge remote-tracking branch 'upstream/master' into patch-13 2013-08-14 07:29:56 +08:00
Unknown W. Brackets
008052e6d6 Fix some variable hiding warnings. 2013-08-12 23:32:38 -07:00
Henrik Rydgard
9109882c04 More microoptimization 2013-08-11 22:12:14 +02:00
raven02
c2a86d647f Fix wrong size generated of FBO for some games which uses it as render-to-texture 2013-08-12 02:20:55 +08:00
Henrik Rydgård
f01279f2cf Merge pull request #3082 from raven02/patch-12
Fix black/missing textures in few games
2013-08-09 00:58:38 -07:00
Henrik Rydgard
51ffdfa132 Rename gpuStats.numFrames to numVBlanks. Switch to using numFlips for things like cache expirations. 2013-08-07 22:34:00 +02:00
raven02
ba4d236d18 Fix black/missing textures in few games 2013-08-07 22:47:41 +08:00
Unknown W. Brackets
f35b4a6159 Don't use render-to-texture with format mismatch. 2013-08-02 22:45:35 -07:00
Unknown W. Brackets
8e512c926e For now, don't bind mismatched FBs at all.
But still don't create a garbage texture either.
2013-08-02 22:45:34 -07:00
Unknown W. Brackets
ab1c20f509 Detach textures and fbs using a range check.
This is more compatible with the attach logic, and might also be faster.
Although, framebuffer destroys should not be that common.
2013-08-02 22:45:34 -07:00
Henrik Rydgard
61d419b2ec Don't scan for something to decimate every frame. Actually costs perf. 2013-08-01 00:13:58 +02:00
raven02
635def582c Fix readIndexedTex() to use texture level for width/height 2013-07-31 01:52:29 +08:00
raven02
50f98fe498 Add texture level parameter 2013-07-30 23:23:02 +08:00
raven02
75c9ce2498 GPUstate :Add getTextureWidth() & getTextureHeight()
and
2013-07-30 23:09:22 +08:00
Unknown W. Brackets
676702071d Correctly rebind textures after an fbo tex.
This is the right fix for Tactics Ogre, and makes sense.  May fix other
games too.
2013-07-30 01:06:33 -07:00
Unknown W. Brackets
ebe68a5d00 Don't bind odd render-to-texture when copying mem. 2013-07-30 00:09:33 -07:00
Unknown W. Brackets
0a9315d0e2 Cut down the scan range to avoid perf hit.
Probably no perf hit anyway.  Should have the same functionality.
2013-07-30 00:02:34 -07:00
Unknown W. Brackets
04dc4ac19b Detect tex subarea renders and palette renders.
But right now, just drawing the original, which isn't really correct.
2013-07-30 00:02:34 -07:00
Unknown W. Brackets
797027779e Log when render to texture formats differ. 2013-07-30 00:02:33 -07:00
Unknown W. Brackets
c31859021c Check the entire FB range for textures.
Using lower_bound/upper_bound should not be very slow.
2013-07-30 00:02:33 -07:00
Unknown W. Brackets
5f5048ca04 Save the bufw for textures as well, to match fbs. 2013-07-30 00:02:32 -07:00
raven02
793428264e Apply LINEAR/LINEARFMV to TextureCache 2013-07-23 19:31:14 +08:00
Henrik Rydgard
9d76ba7dd2 Minor cleanup in texcache, fix some warnings 2013-07-22 19:26:16 +02:00
Unknown W. Brackets
4cfa074546 Use GE state accessors in the texcache. 2013-07-21 19:45:05 -07:00
Florent Castelli
cc180fa204 Add type safe getter for texture and clut format fields. 2013-07-21 19:44:28 -07:00
raven02
100d336fb2 Remove _ suffix and hide the GPU mode on GLES2 2013-07-22 04:17:54 +08:00
raven02
87fc81e56d Consolidate Rendering Mode 2013-07-21 23:17:42 +08:00
Henrik Rydgard
a372e0b854 Merge branch 'patch-11' of https://github.com/raven02/ppsspp into raven02-patch-11 2013-07-20 00:33:46 +02:00
raven02
9b1d7f4166 Delete non-fbo texture 2013-07-20 01:24:20 +08:00
raven02
4d53022121 Use emnu{} to simplify different of texture filtering 2013-07-19 22:36:00 +08:00
raven02
0cfd12170c Fix text disappear when mipmapping ON in Tactic Ogre 2013-07-19 22:35:46 +08:00
Henrik Rydgard
28ad8dc230 Lots of NewUI stuff (still experimental), fix back bug with x360 controllers 2013-07-17 22:27:50 +02:00
Unknown W. Brackets
2c873ce1e8 Don't even need this var anymore. 2013-07-07 20:31:05 -07:00
raven02
f79cf0afd5 Revert c8431493be 2013-07-07 06:53:33 +08:00
raven02
c8431493be Fix black screen in non-buffered rendering mode 2013-07-03 20:02:26 +02:00
Unknown W. Brackets
5bb16e7f40 Actually, mark BGR5650 as full alpha. 2013-06-30 23:58:10 -07:00
Unknown W. Brackets
94cbb5dcd1 Never use textureFullAlpha w/ framebuffer textures. 2013-06-30 23:56:24 -07:00
Unknown W. Brackets
4bc7752eb5 Flip around the texture key to invalid faster. 2013-06-30 20:52:15 -07:00
Unknown W. Brackets
79116da82d Decode 16-bit textures a bit more directly.
Improves performance in God of War.
2013-06-30 20:36:53 -07:00
raven02
5d275d7fe9 Consolildate Texture filtering option 2013-06-30 14:58:46 +08:00
oioitff
dc04584ca1 Add a new option to enable
Linear Filtering only for CGs.
2013-06-30 03:35:28 +08:00
Admiral H. Curtiss
802fa0de4c Merge remote-tracking branch 'upstream/master' into nearest_filtering 2013-06-23 23:16:48 +02:00
Admiral H. Curtiss
fe132af9ec Renamed Nearest and Linear Filtering to Force Nearest/Linear Filtering.
Made sure that both options aren't active at the same time.
2013-06-23 22:39:32 +02:00
Admiral H. Curtiss
505f8559c1 Added a "Nearest Filtering" option for testing. 2013-06-23 21:56:07 +02:00
Unknown W. Brackets
cd213e655b Add some debug code for finding textures. 2013-06-22 10:35:34 -07:00
Unknown W. Brackets
390f0d79fc Add a copy path to ConvertColors RGBA8888.
It's not actually ever called this way, but I'd rather not let someone get
confused if they try to.
2013-06-22 10:16:38 -07:00
Unknown W. Brackets
88fbe6c1b5 Clear lastBoundTexture when binding a null one. 2013-06-22 10:15:30 -07:00