Example #1
0
 public static void vblank_begin_callback()
 {
     screenstate.vblank_start_time = Timer.global_basetime;// Timer.get_current_time();
     Cpuexec.on_vblank();
     video_frame_update();
     Timer.timer_adjust_periodic(vblank_begin_timer, frame_update_time, Attotime.ATTOTIME_NEVER);
 }
Example #2
0
        public static void vblank_begin_callback()
        {
            screenstate.vblank_start_time = Timer.global_basetime;
            Cpuexec.on_vblank();
            video_frame_update();
            switch (Machine.sBoard)
            {
            case "CPS-1":
            case "CPS-1(QSound)":
            case "CPS2":
            case "Namco System 1":
            case "IGS011":
            case "PGM":
                Timer.timer_adjust_periodic(vblank_begin_timer, frame_update_time, Attotime.ATTOTIME_NEVER);
                break;

            case "Neo Geo":
                Timer.timer_adjust_periodic(vblank_begin_timer, video_screen_get_time_until_pos(screenstate.visarea.max_y + 1, 0), Attotime.ATTOTIME_NEVER);
                break;
            }
        }