Fix JUTResFont performance

Just store the GXTexObjs in a separately allocated hashmap, so they can be persisted cross-frame. Easy.

Fixes #227
This commit is contained in:
PJB3005
2026-04-07 21:43:38 +02:00
parent 2d7c98e0c8
commit 9cf6f3497d
2 changed files with 50 additions and 3 deletions
@@ -18,6 +18,10 @@ struct BlockHeader {
BE(u32) size;
};
#if TARGET_PC
struct GlyphTextures;
#endif
/**
* @ingroup jsystem-jutility
*
@@ -64,7 +68,11 @@ public:
// some types uncertain, may need to be fixed
/* 0x1C */ int mWidth;
/* 0x20 */ int mHeight;
#if TARGET_PC
GlyphTextures* mGlyphTextures;
#else
/* 0x24 */ TGXTexObj mTexObj;
#endif
/* 0x44 */ int mTexPageIdx;
/* 0x48 */ const ResFONT* mResFont;
/* 0x4C */ ResFONT::INF1* mInf1Ptr;