Skip to content

Commit

Permalink
remove vsync option
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Sep 21, 2021
1 parent 30f64e7 commit 8810a10
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
5 changes: 2 additions & 3 deletions allmakes.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
make all TARGET=capcom; cp EBOOT.PBP CAPCOM.PBP;
make all TARGET=Cave; cp EBOOT.PBP CAVE.PBP;
make all TARGET=cps1; cp EBOOT.PBP CPS1.PBP;
make all TARGET=deco; cp EBOOT.PBP DECO.PBP;
make all TARGET=dynax; cp EBOOT.PBP DYNAX.PBP
make all TARGET=irem; cp EBOOT.PBP IREM.PBP;
make all TARGET=Jaleco; cp EBOOT.PBP JALECO.PBP;
make all TARGET=Kaneko; cp EBOOT.PBP KANEKO.PBP;
make all TARGET=konami; cp EBOOT.PBP KONAMI.PBP;
make all TARGET=konami2; cp EBOOT.PBP KONAMI2.PBP;
make all TARGET=namco; cp EBOOT.PBP NAMCO.PBP;
Expand All @@ -15,11 +15,10 @@ make all TARGET=nintendo; cp EBOOT.PBP NINTENDO.PBP;
make all TARGET=sega; cp EBOOT.PBP SEGA.PBP;
make all TARGET=sega2; cp EBOOT.PBP SEGA2.PBP;
make all TARGET=sega3; cp EBOOT.PBP SEGA3.PBP;
make all TARGET=Seta; cp EBOOT.PBP SETA.PBP;
make all TARGET=snk; cp EBOOT.PBP SNK.PBP;
make all TARGET=taito; cp EBOOT.PBP TAITO.PBP;
make all TARGET=taito2; cp EBOOT.PBP TAITO2.PBP;
make all TARGET=technos; cp EBOOT.PBP TECHNOS.PBP;
make all TARGET=Universal; cp EBOOT.PBP UNIVERSAL.PBP;
make all TARGET=upl; cp EBOOT.PBP UPL.PBP;


4 changes: 2 additions & 2 deletions src/psp/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static void parse_cmdline( int argc, char **argv, int game_index )

setBlitMode(setting.screensize);

wait_vsync = setting.vsync_ON_OFF;
// wait_vsync = setting.vsync_ON_OFF;
ui_show_fps_set(setting.show_fps_ON_OFF);
throttle = setting.limit_ON_OFF;

Expand Down Expand Up @@ -710,7 +710,7 @@ int cli_frontend_init( int argc, char **argv )
/* no sound is indicated by a 0 samplerate */
if (SND_OFF==setting.sound_rate) options.samplerate = 0;

if (game_index_int) {
if (game_index_int > -1) {
game_index = game_index_int;
}

Expand Down
30 changes: 15 additions & 15 deletions src/psp/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ void save_config(void)
#define SET_DEFAULT_FSKIPS SET_FSKIP_00
#endif // SET_DEFAULT_FSKIPS
/* set default to off the video syncronization for draw. */
#define SET_DEFAULT_VSYNC_ON_OFF SET_ON
// #define SET_DEFAULT_VSYNC_ON_OFF SET_ON

/* set default speed max limitage. */
#define SET_DEFAULT_LIMIT_ON_OFF SET_OFF
Expand Down Expand Up @@ -457,7 +457,7 @@ void load_config(void)
strcpy(setting.vercnf, CONFIG_VER);
setting.screensize = SET_DEFAULT_SCREEN;
setting.frameskip = SET_DEFAULT_FSKIPS;
setting.vsync_ON_OFF = SET_DEFAULT_VSYNC_ON_OFF;
// setting.vsync_ON_OFF = SET_DEFAULT_VSYNC_ON_OFF;
setting.limit_ON_OFF = SET_DEFAULT_LIMIT_ON_OFF;
setting.show_fps_ON_OFF = SET_OFF;
setting.sound_rate = SET_DEFAULT_SOUND_FREQ;/*default sound rate 44100 */
Expand Down Expand Up @@ -797,7 +797,7 @@ void psp_menu(void)
//---space---
ITEM_SCREEN_SIZE, //1
ITEM_FRAME_SKIP,
ITEM_VSYNC,
// ITEM_VSYNC,
ITEM_LIMIT_SPEED,
ITEM_SHOW_FPS,
ITEM_ROM_FILTER,
Expand Down Expand Up @@ -829,7 +829,7 @@ void psp_menu(void)
case ITEM_FRAME_SKIP: if (setting.frameskip > 0) setting.frameskip--; break;
case ITEM_SCREEN_SIZE: if (setting.screensize > 0) setting.screensize--; break;

case ITEM_VSYNC: setting.vsync_ON_OFF = SET_OFF; break;
// case ITEM_VSYNC: setting.vsync_ON_OFF = SET_OFF; break;
case ITEM_LIMIT_SPEED: setting.limit_ON_OFF = SET_OFF; break;
case ITEM_SHOW_FPS: setting.show_fps_ON_OFF = SET_OFF; break;
case ITEM_ROM_FILTER: setting.rom_filter = SET_OFF; Get_DriverList(setting.rom_filter); break;
Expand All @@ -843,7 +843,7 @@ void psp_menu(void)
case ITEM_SOUND_RATE: if (setting.sound_rate > 0) setting.sound_rate--; break;
case ITEM_FRAME_SKIP: if (setting.frameskip < (60+1)) setting.frameskip++; break;
case ITEM_SCREEN_SIZE: if (setting.screensize < (SCR_MAX-1)) setting.screensize++; break;
case ITEM_VSYNC: setting.vsync_ON_OFF = SET_ON; break;
// case ITEM_VSYNC: setting.vsync_ON_OFF = SET_ON; break;
case ITEM_LIMIT_SPEED: setting.limit_ON_OFF = SET_ON; break;
case ITEM_SHOW_FPS: setting.show_fps_ON_OFF = SET_ON; break;
case ITEM_ROM_FILTER: setting.rom_filter = SET_ON; Get_DriverList(setting.rom_filter); break;
Expand Down Expand Up @@ -936,16 +936,16 @@ static const char *scr_names[] = {
psp_print(MENU2_X_OFFS, ((MENU1_Y_OFFS+ITEM_FRAME_SKIP+(1))*(MENU1_Y_SPACER)), setting.color[3],tmp);


psp_print(MENU2_X_OFFS, ((MENU1_Y_OFFS+ITEM_VSYNC+(1))*(MENU1_Y_SPACER)), setting.color[3], setting.vsync_ON_OFF
? "VSYNC: " "ON"
#if (SET_ON==SET_DEFAULT_VSYNC_ON_OFF)
STR_DEFAULT
#endif
: "VSYNC: " "OFF"
#if (SET_OFF==SET_DEFAULT_VSYNC_ON_OFF)
STR_DEFAULT
#endif
);
// psp_print(MENU2_X_OFFS, ((MENU1_Y_OFFS+ITEM_VSYNC+(1))*(MENU1_Y_SPACER)), setting.color[3], setting.vsync_ON_OFF
// ? "VSYNC: " "ON"
// #if (SET_ON==SET_DEFAULT_VSYNC_ON_OFF)
// STR_DEFAULT
// #endif
// : "VSYNC: " "OFF"
// #if (SET_OFF==SET_DEFAULT_VSYNC_ON_OFF)
// STR_DEFAULT
// #endif
// );

psp_print(MENU2_X_OFFS, ((MENU1_Y_OFFS+ITEM_LIMIT_SPEED +(1) )*(MENU1_Y_SPACER)), setting.color[3], setting.limit_ON_OFF ? "LIMIT SPEED: " "ON" : "LIMIT SPEED: " "OFF" STR_DEFAULT );
psp_print(MENU2_X_OFFS, ((MENU1_Y_OFFS+ITEM_SHOW_FPS +(1) )*(MENU1_Y_SPACER)), setting.color[3], setting.show_fps_ON_OFF ? "SHOW FPS: " "ON" : "SHOW FPS: " "OFF" STR_DEFAULT);
Expand Down
4 changes: 2 additions & 2 deletions src/psp/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ typedef struct
char vercnf[16];
u8/*u8*//*int*/ frameskip;
u8/*u8*//*int*/ screensize;
u8/*u8*//*int*/ vsync_ON_OFF;
// u8/*u8*//*int*/ vsync_ON_OFF;
u8/*u8*//*int*/ show_fps_ON_OFF;// int showfps;

u8/*u8*//*int*/ sound_skip;
Expand Down Expand Up @@ -54,7 +54,7 @@ enum{
SCR_MAX, //SCR_END,
};

#define CONFIG_VER "0.0.3"
#define CONFIG_VER "0.0.4"

#define DRVIDX_MAX 1000
short drv_idx[DRVIDX_MAX];
Expand Down
1 change: 1 addition & 0 deletions src/psp/pspmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ int main(int argc, char *argv[])

for(h=0;h<argc;h++)
/*res =*/ run_mame(_argc + 1, _argv);
game_index_int = -1; // avoid looping pre-selected game
scePowerSetClockFrequency(222, 222, 111);
}

Expand Down

0 comments on commit 8810a10

Please sign in to comment.