Merge branch 'main' of https://github.com/abnormalhare/mp4-dtk
This commit is contained in:
commit
724bf93a8a
7 changed files with 290 additions and 121 deletions
|
|
@ -8,9 +8,13 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
typedef void (*GXDrawDoneCallback)(void);
|
||||
typedef void (*GXDrawSyncCallback)(u16 token);
|
||||
|
||||
GXFifoObj* GXInit(void* base, u32 size);
|
||||
GXDrawDoneCallback GXSetDrawDoneCallback(GXDrawDoneCallback cb);
|
||||
void GXSetDrawSync(u16 token);
|
||||
GXDrawSyncCallback GXSetDrawSyncCallback(GXDrawSyncCallback callback);
|
||||
|
||||
void GXDrawDone(void);
|
||||
void GXSetDrawDone(void);
|
||||
void GXFlush(void);
|
||||
|
|
|
|||
|
|
@ -2,12 +2,31 @@
|
|||
#define _DOLPHIN_GXPERF
|
||||
|
||||
#include <dolphin/types.h>
|
||||
#include <dolphin/gx/GXEnum.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void GXReadXfRasMetric(u32* xf_wait_in, u32* xf_wait_out, u32* ras_busy, u32* clocks);
|
||||
extern void GXSetGPMetric(GXPerf0 perf0, GXPerf1 perf1);
|
||||
extern void GXClearGPMetric();
|
||||
extern void GXReadXfRasMetric(u32* xfWaitIn, u32* xfWaitOut, u32* rasBusy, u32* clocks);
|
||||
|
||||
// Unused/inlined in P2.
|
||||
extern void GXReadGPMetric(u32* count0, u32* count1);
|
||||
extern u32 GXReadGP0Metric();
|
||||
extern u32 GXReadGP1Metric();
|
||||
extern void GXReadMemMetric(u32* cpReq, u32* tcReq, u32* cpuReadReq, u32* cpuWriteReq, u32* dspReq, u32* ioReq, u32* viReq, u32* peReq,
|
||||
u32* rfReq, u32* fiReq);
|
||||
extern void GXClearMemMetric();
|
||||
extern void GXReadPixMetric(u32* topIn, u32* topOut, u32* bottomIn, u32* bottomOut, u32* clearIn, u32* copyClocks);
|
||||
extern void GXClearPixMetric();
|
||||
extern void GXSetVCacheMetric(GXVCachePerf attr);
|
||||
extern void GXReadVCacheMetric(u32* check, u32* miss, u32* stall);
|
||||
extern void GXClearVCacheMetric();
|
||||
extern void GXInitXfRasMetric();
|
||||
extern u32 GXReadClksPerVtx();
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,6 +90,23 @@ typedef struct OSCalendarTime {
|
|||
OSTime OSCalendarTimeToTicks(OSCalendarTime* td);
|
||||
void OSTicksToCalendarTime(OSTime ticks, OSCalendarTime* td);
|
||||
|
||||
typedef struct OSStopwatch {
|
||||
char* name;
|
||||
OSTime total;
|
||||
u32 hits;
|
||||
OSTime min;
|
||||
OSTime max;
|
||||
OSTime last;
|
||||
BOOL running;
|
||||
} OSStopwatch;
|
||||
|
||||
void OSInitStopwatch(OSStopwatch* sw, char* name);
|
||||
void OSStartStopwatch(OSStopwatch* sw);
|
||||
void OSStopStopwatch(OSStopwatch* sw);
|
||||
OSTime OSCheckStopwatch(OSStopwatch* sw);
|
||||
void OSResetStopwatch(OSStopwatch* sw);
|
||||
void OSDumpStopwatch(OSStopwatch* sw);
|
||||
|
||||
#define OS_CONSOLE_MASK 0xf0000000
|
||||
#define OS_CONSOLE_RETAIL 0x00000000
|
||||
#define OS_CONSOLE_DEVELOPMENT 0x10000000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue