1
0
Fork 0

Changed exit loop to always check after a cpu core has run

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1440
This commit is contained in:
Sjoerd van der Berg 2003-11-18 20:50:26 +00:00
parent 01bdd5f6f7
commit db195c0ad1

View file

@ -111,10 +111,10 @@ static Bitu Normal_Loop(void) {
if (ret>0) {
Bitu blah=(*CallBack_Handlers[ret])();
if (blah) return blah;
#if C_DEBUG
if (DEBUG_ExitLoop()) return 0;
#endif
}
#if C_DEBUG
if (DEBUG_ExitLoop()) return 0;
#endif
} else {
if (RemainTicks>0) {
TIMER_AddTick();
@ -222,9 +222,13 @@ void DOSBOX_Init(void) {
secprop=control->AddSection_prop("cpu",&CPU_Init);
secprop->Add_int("cycles",1800);
secprop->Add_int("cycleup",500);
secprop->Add_int("cycledown",20);
MSG_Add("CPU_CONFIGFILE_HELP",
"cycles -- Amount of instructions dosbox tries to emulate each millsecond.\n"
" Setting this higher than your machine can handle is bad!\n"
"cycleup -- Amount of cycles to increase/decrease with keycombo.\n"
"cycledown Setting it lower than 100 will be a percentage.\n"
);
#if C_FPU
secprop->AddInitFunction(&FPU_Init);