Skip to content

Commit

Permalink
Move the texcache measurements to strictly include only actual textur…
Browse files Browse the repository at this point in the history
…e loading, and not framebuffer shenanigans etc.
  • Loading branch information
hrydgard committed May 24, 2015
1 parent 9e15f04 commit 6b1df63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GPU/GLES/TextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,6 @@ bool TextureCache::SetOffsetTexture(u32 offset) {
}

void TextureCache::SetTexture(bool force) {
PROFILE_THIS_SCOPE("settexture");
#ifdef DEBUG_TEXTURES
if (SetDebugTexture()) {
// A different texture was bound, let's rebind next time.
Expand Down Expand Up @@ -1894,6 +1893,8 @@ TextureCache::TexCacheEntry::Status TextureCache::CheckAlpha(const u32 *pixelDat
}

void TextureCache::LoadTextureLevel(TexCacheEntry &entry, int level, bool replaceImages, int scaleFactor, GLenum dstFmt) {
PROFILE_THIS_SCOPE("loadtex");

// TODO: only do this once
u32 texByteAlign = 1;

Expand Down

0 comments on commit 6b1df63

Please sign in to comment.