From 3ece2f0c51ef6b679cd5765900b567ef47dde1e8 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 6 Dec 2011 01:19:35 +0200 Subject: export frame count to gpu too --- frontend/plugin_lib.c | 2 ++ frontend/plugin_lib.h | 1 + 2 files changed, 3 insertions(+) (limited to 'frontend') diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index e93c12f..eba09fb 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -476,6 +476,7 @@ void pl_start_watchdog(void) void pl_init(void) { extern unsigned int hSyncCount; // from psxcounters + extern unsigned int frame_counter; pl_vout_w = pl_vout_h = 256; pl_vout_bpp = 16; @@ -483,4 +484,5 @@ void pl_init(void) tsdev = pl_gun_ts_init(); pl_rearmed_cbs.gpu_hcnt = &hSyncCount; + pl_rearmed_cbs.gpu_frame_count = &frame_counter; } diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index 81a6b28..914cbff 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -47,6 +47,7 @@ struct rearmed_cbs { // gpu options int frameskip; int fskip_advice; + unsigned int *gpu_frame_count; unsigned int *gpu_hcnt; struct { int iUseDither; -- cgit v1.2.3