From 77545a2035152817469766c68f9a66a14662ecba Mon Sep 17 00:00:00 2001 From: Justin Kerk Date: Sat, 26 Sep 2015 00:57:28 -0700 Subject: [PATCH] Mostly revert 3bb0fb2df7037fa60752035a7add4fcea5b8881d (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 --- src/emu/machine.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/emu/machine.c b/src/emu/machine.c index b2ecab42591..3f0eb5a9c15 100644 --- a/src/emu/machine.c +++ b/src/emu/machine.c @@ -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(); } }