mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
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:
parent
ffa8ca84dd
commit
77545a2035
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user