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() void js_main_loop()
{ {
attotime stoptime(jsmess_machine->scheduler().time() + attotime(0,HZ_TO_ATTOSECONDS(60))); device_scheduler * scheduler;
while (jsmess_machine->scheduler().time()) < stoptime) scheduler = &(jsmess_machine->scheduler());
{ attotime stoptime(scheduler->time() + attotime(0,HZ_TO_ATTOSECONDS(60)));
jsmess_machine->scheduler().timeslice(); while (scheduler->time() < stoptime) {
scheduler->timeslice();
} }
} }