aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2011-12-06 01:19:35 +0200
committernotaz2011-12-06 01:19:35 +0200
commit3ece2f0c51ef6b679cd5765900b567ef47dde1e8 (patch)
treea7c0149380b25f4b6048233e1a7b0d9ade4f589c /frontend
parent95df1a043efd3a11b3cdf90d647fc1b3a96a2c88 (diff)
downloadpcsx_rearmed-3ece2f0c51ef6b679cd5765900b567ef47dde1e8.tar.gz
pcsx_rearmed-3ece2f0c51ef6b679cd5765900b567ef47dde1e8.tar.bz2
pcsx_rearmed-3ece2f0c51ef6b679cd5765900b567ef47dde1e8.zip
export frame count to gpu too
Diffstat (limited to 'frontend')
-rw-r--r--frontend/plugin_lib.c2
-rw-r--r--frontend/plugin_lib.h1
2 files changed, 3 insertions, 0 deletions
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;