mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Software backend: Delete forked PixelEngine.
Mostly just zapping a bunch of duplicated code; the only interesting thing going on here is the changes to the performance counter implementation.
This commit is contained in:
@ -51,4 +51,17 @@ namespace EfbInterface
|
||||
void BypassXFB(u8* texture, u32 fbWidth, u32 fbHeight, const EFBRectangle& sourceRc, float Gamma);
|
||||
|
||||
void DoState(PointerWrap &p);
|
||||
|
||||
extern u32 perf_values[PQ_NUM_MEMBERS];
|
||||
inline void IncPerfCounterQuadCount(PerfQueryType type) {
|
||||
// NOTE: hardware doesn't process individual pixels but quads instead.
|
||||
// Current software renderer architecture works on pixels though, so
|
||||
// we have this "quad" hack here to only increment the registers on
|
||||
// every fourth rendered pixel
|
||||
static u32 quad[PQ_NUM_MEMBERS];
|
||||
if (++quad[type] != 3)
|
||||
return;
|
||||
quad[type] = 0;
|
||||
++perf_values[type];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user