Mostly revert 3bb0fb2df7 (nw)

Checked the compiled output with -O3 and the change resulted in additional heap operations
Leaving in the attotime change although it seems to have no effect one way or the other
This commit is contained in:
Justin Kerk 2015-09-26 00:57:28 -07:00
parent ffa8ca84dd
commit 77545a2035

View File

@ -1353,10 +1353,11 @@ static running_machine * jsmess_machine;
void js_main_loop()
{
attotime stoptime(jsmess_machine->scheduler().time() + attotime(0,HZ_TO_ATTOSECONDS(60)));
while (jsmess_machine->scheduler().time()) < stoptime)
{
jsmess_machine->scheduler().timeslice();
device_scheduler * scheduler;
scheduler = &(jsmess_machine->scheduler());
attotime stoptime(scheduler->time() + attotime(0,HZ_TO_ATTOSECONDS(60)));
while (scheduler->time() < stoptime) {
scheduler->timeslice();
}
}