Profiler: Separately track texture hashing.
Since it's slow and was lumped into updatestate.
This commit is contained in:
parent
eb35e88288
commit
267b9a6598
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include <algorithm>
|
||||
#include "profiler/profiler.h"
|
||||
#include "Common/ColorConv.h"
|
||||
#include "Common/MemoryUtil.h"
|
||||
#include "Core/Config.h"
|
||||
|
@ -1472,6 +1473,7 @@ void TextureCacheCommon::ApplyTexture() {
|
|||
}
|
||||
|
||||
if (nextNeedsRehash_) {
|
||||
PROFILE_THIS_SCOPE("texhash");
|
||||
// Update the hash on the texture.
|
||||
int w = gstate.getTextureWidth(0);
|
||||
int h = gstate.getTextureHeight(0);
|
||||
|
@ -1547,7 +1549,11 @@ void TextureCacheCommon::DeleteTexture(TexCache::iterator it) {
|
|||
bool TextureCacheCommon::CheckFullHash(TexCacheEntry *entry, bool &doDelete) {
|
||||
int w = gstate.getTextureWidth(0);
|
||||
int h = gstate.getTextureHeight(0);
|
||||
u32 fullhash = QuickTexHash(replacer_, entry->addr, entry->bufw, w, h, GETextureFormat(entry->format), entry);
|
||||
u32 fullhash;
|
||||
{
|
||||
PROFILE_THIS_SCOPE("texhash");
|
||||
fullhash = QuickTexHash(replacer_, entry->addr, entry->bufw, w, h, GETextureFormat(entry->format), entry);
|
||||
}
|
||||
|
||||
if (fullhash == entry->fullhash) {
|
||||
if (g_Config.bTextureBackoffCache) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue