fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ibmpc: Adjust sleep times for real time synchronization

+4 -4
+4 -4
src/arch/ibmpc/ibmpc.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/arch/ibmpc/ibmpc.c * 7 7 * Created: 1999-04-16 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 1999-2024 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 1999-2025 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 79 79 #include <libini/libini.h> 80 80 81 81 82 - #define PCE_IBMPC_SLEEP 25000 82 + #define PCE_IBMPC_SLEEP 10000 83 83 84 84 85 85 static char *par_intlog[256]; ··· 2036 2036 pc->speed_clock_extra -= 1; 2037 2037 } 2038 2038 2039 - if (pc->sync_clock2_real > PCE_IBMPC_CLK2) { 2040 - pc->sync_clock2_real = 0; 2039 + if (pc->sync_clock2_real >= (2 * PCE_IBMPC_CLK2)) { 2040 + pc->sync_clock2_real -= PCE_IBMPC_CLK2; 2041 2041 pce_log (MSG_INF, "host system too slow, skipping 1 second.\n"); 2042 2042 } 2043 2043