MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

couriersud
Reged: 03/27/07
Posts: 214
Send PM
Re: Noticed some slow-downs....
04/18/14 09:44 PM


> Another solution would be to not convert it to a pattern that requires cycle exact
> scheduling.

Reading from a sound device (which pokey was before) is trying to look into the future.

The old code looked "forward" only for reading the random number generator, whilst everything else was returned in a state about a frame old.

The current "kludge" is just exact emulation.

What we actually need in MAME are "slave" cpu devices:
- can't have a time in advance of the "master" cpu.
- Reads from the slave trigger the device to advance to the master cpu time *before* the read is finished.

Using a sound device and stream_update may be a possibility. However, interrupts may be triggered too late. OK, one can use timers. This can become really complex and hides the way a device works.

The rewrite as far as I remember was triggered when I rewrote the keyboard emulation which was a big HLE kludge. Same applied to paddle support. I found it a lot easier to implement those features in an "execute" device.

MAME has an issue with bidirectional communication between clocked devices. The framework supports a number of ways to deal with that.

I prefer clear and readable code and eventually take a performance hit and compensate that hit by buying contemporary hardware about every 5 years. My i7-950 (about 4 years old) runs tempest at ~400%. So I don't understand the issue here. Tempest is cycle exact now and runs at 400% on four year old hardware.







Entire thread
Subject Posted by Posted on
* Noticed some slow-downs.... Traso 04/13/14 06:58 AM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 03:03 AM
. * Re: Noticed some slow-downs.... Dullaron  04/19/14 01:30 AM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 03:05 AM
. * Re: Noticed some slow-downs.... Big Karnak  04/13/14 12:32 PM
. * Re: Noticed some slow-downs.... grog  04/18/14 09:37 PM
. * Re: Noticed some slow-downs.... Traso  04/15/14 06:24 AM
. * Re: Noticed some slow-downs.... Master O  04/18/14 09:42 PM
. * Re: Noticed some slow-downs.... Anonymous  04/13/14 01:33 PM
. * Re: Noticed some slow-downs.... couriersud  04/18/14 05:09 PM
. * Re: Noticed some slow-downs.... Anonymous  04/18/14 07:40 PM
. * Re: Noticed some slow-downs.... couriersud  04/18/14 09:44 PM
. * Re: Noticed some slow-downs.... Anonymous  04/18/14 11:44 PM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 12:39 AM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 02:59 AM
. * Re: Noticed some slow-downs.... Anonymous  04/19/14 09:47 AM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 12:06 PM
. * Re: Noticed some slow-downs.... Anonymous  04/19/14 12:11 PM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 12:38 PM
. * Re: Noticed some slow-downs.... Anonymous  04/19/14 12:56 PM
. * Re: Noticed some slow-downs.... couriersud  04/19/14 02:51 PM
. * Re: Noticed some slow-downs.... Vas Crabb  04/13/14 07:30 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 136 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2434