Some realtime profiling stuff. Enable FZ (flush-to-zero) mode.

This commit is contained in:
Henrik Rydgard committed 2013-01-10 23:49:33 +01:00
1 parent 97f3638212
commit ca0d74762d
11 files changed
+41 -6

No files matched your search

+11 -1
View File
@@ -598,6 +598,13 @@ void convertColors(u8 *finalBuf, GLuint dstFmt, int numPixels) {
}
}
int lastBoundTexture = -1;
void TextureCache_StartFrame() {
lastBoundTexture = -1;
TextureCache_Decimate();
}
void PSPSetTexture() {
u32 texaddr = (gstate.texaddr[0] & 0xFFFFF0) | ((gstate.texbufwidth[0]<<8) & 0xFF000000);
texaddr &= 0xFFFFFFF;
@@ -656,7 +663,10 @@ void PSPSetTexture() {
if (match) {
//got one!
entry.frameCounter = gpuStats.numFrames;
glBindTexture(GL_TEXTURE_2D, entry.texture);
if (entry.texture != lastBoundTexture) {
glBindTexture(GL_TEXTURE_2D, entry.texture);
lastBoundTexture = entry.texture;
}
UpdateSamplingParams(entry, false);
DEBUG_LOG(G3D, "Texture at %08x Found in Cache, applying", texaddr);
return; //Done!