added frameskip back, has asked in openpandora forum
This commit is contained in:
parent
85d806c355
commit
6a9cdd7633
|
@ -71,7 +71,8 @@ int max_idx,max_mvo,max_op,max_pt,max_tr,max_vtx,max_modt, ovrn;
|
||||||
TA_context* _pvrrc;
|
TA_context* _pvrrc;
|
||||||
void SetREP(TA_context* cntx);
|
void SetREP(TA_context* cntx);
|
||||||
|
|
||||||
|
int frameskip=0;
|
||||||
|
bool FrameSkipping=false; // global switch to enable/disable frameskip
|
||||||
|
|
||||||
bool rend_single_frame()
|
bool rend_single_frame()
|
||||||
{
|
{
|
||||||
|
@ -85,7 +86,6 @@ bool rend_single_frame()
|
||||||
|
|
||||||
bool proc = rend->Process(_pvrrc);
|
bool proc = rend->Process(_pvrrc);
|
||||||
re.Set();
|
re.Set();
|
||||||
|
|
||||||
bool do_swp = proc && rend->Render();
|
bool do_swp = proc && rend->Render();
|
||||||
|
|
||||||
if (do_swp)
|
if (do_swp)
|
||||||
|
|
|
@ -101,6 +101,8 @@ void emit_WriteCodeCache();
|
||||||
|
|
||||||
static SDL_Joystick *JoySDL = 0;
|
static SDL_Joystick *JoySDL = 0;
|
||||||
|
|
||||||
|
extern bool FrameSkipping;
|
||||||
|
|
||||||
#ifdef USE_OSS
|
#ifdef USE_OSS
|
||||||
static int audio_fd = -1;
|
static int audio_fd = -1;
|
||||||
#endif
|
#endif
|
||||||
|
@ -222,6 +224,7 @@ bool HandleEvents(u32 port) {
|
||||||
case SDLK_k: KillTex=true; break;
|
case SDLK_k: KillTex=true; break;
|
||||||
case SDLK_n: if (value) {mouse_use=(mouse_use+1)%4; snprintf(OSD_Info, 128, "Right Nub mode: %s\n", num_mode[mouse_use]); OSD_Delay=300;}; break;
|
case SDLK_n: if (value) {mouse_use=(mouse_use+1)%4; snprintf(OSD_Info, 128, "Right Nub mode: %s\n", num_mode[mouse_use]); OSD_Delay=300;}; break;
|
||||||
case SDLK_s: if (value) {settings.aica.NoSound=!settings.aica.NoSound; snprintf(OSD_Info, 128, "Sound %s\n", (settings.aica.NoSound)?"Off":"On"); OSD_Delay=300;};break;
|
case SDLK_s: if (value) {settings.aica.NoSound=!settings.aica.NoSound; snprintf(OSD_Info, 128, "Sound %s\n", (settings.aica.NoSound)?"Off":"On"); OSD_Delay=300;};break;
|
||||||
|
case SDLK_f: if (value) {FrameSkipping=!FrameSkipping; snprintf(OSD_Info, 128, "FrameSkipping %s\n", (FrameSkipping)?"On":"Off"); OSD_Delay=300;};break;
|
||||||
case SDLK_c: if (value) {OSD_Counter=1-OSD_Counter;};break;
|
case SDLK_c: if (value) {OSD_Counter=1-OSD_Counter;};break;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -502,6 +505,8 @@ int main(int argc, wchar* argv[])
|
||||||
#ifdef USE_OSS
|
#ifdef USE_OSS
|
||||||
init_sound();
|
init_sound();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
FrameSkipping=false;
|
||||||
|
|
||||||
dc_run();
|
dc_run();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue