Arda
Member
this time, unlike gp_DMAmemcopy, gpGetRTC() is working just fine on geepee32 emulator, but gpGetRTC() always returns 0 on a REAL gp32.
here is the code:
the above code is working fine on emulator.
but not on a real gp32.
(SDK's Rtc timer example won't work on real gp32 too)
here is the code:
Code:
char buf[256];
int fps,fpsb;
gp_InstallRTC();
fpsb=0;
fps=0;
cs=0; // current screen = 0
while (1) {
...
...set buffer.. cleear screen etc...
...
// print fps on buffer:
sprintf (buf, "%d", fpsb);
gp_SetFont8(10,10,strlen (buf),buf,0,fbufs[cs]);
ciz(posx1,posy1); // make some complicated drawings
// add fps count:
fps++;
//check to see if a second has passed
if (gp_GetRTC () > 128) {
fpsb=fps;
fps=0;
gp_ResetRTC ();
}
}
the above code is working fine on emulator.
but not on a real gp32.
(SDK's Rtc timer example won't work on real gp32 too)