Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NeoGPC v1.1.0 - (11/9/2013)
#16
(11-22-2012, 12:28 AM)Flavor Wrote: Keep in mind that RACE! was mainly developed to run on a single-application handheld platform. When it is running, it assumes that nothing else is important.

There are some places in the emulation that wait for things to happen. In particular, I can think of a main emulation loop that tries to emulate clock speed by waiting until the right time to execute the next set of operations. What I don't recall is how this loop is implemented. I think there were different versions of this. On a multitasking OS, you would not want to do something like this pseudocode...

while(it's not time for the next operation)
{
check what time it is
}

Essentially that would just keep checking the current time until the proper time is reached. This sort of thing should probably be changed to something more like.

if(it's not time for the next operation)
{
waitTime = calculate how long until the next operation
sleep(waitTime)
}

I don't know what state the code is/was in. Even if the main wait is already written like the second version, there may be other places that aren't releasing the CPU when they're not doing anything useful.

I'm not really telling you this as a coder, Cthulhu32. I'm more mentioning this generally to anyone reading.

Oh, and yeah, I have some bundles ready. I think I have 2 that are pretty much ready to ship. After that, I have about 6 more that just need a bit more soldering and testing.

Yeah I need to find a cleaner way of sleeping in Win32. Right now I'm not sleeping at all which is why its killing your CPU most likely, but I do have a QueryPerformanceCounter() in there to determine when it needs to run the next Z80/TLCS step.

I will work on this for the next test version and see if I can get the performance up, that is a pretty big CPU hit for this emu.
Reply


Messages In This Thread
NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 10-30-2012, 04:07 AM
RE: NeoGPC (working title..) - by Flavor - 10-30-2012, 04:12 AM
RE: NeoGPC (working title..) - by mic_ - 10-30-2012, 06:42 AM
RE: NeoGPC (working title..) - by Morden - 10-30-2012, 07:10 PM
RE: NeoGPC (working title..) - by Cthulhu32 - 10-31-2012, 08:29 AM
RE: NeoGPC (working title..) - by Morden - 11-06-2012, 08:37 AM
RE: NeoGPC (working title..) - by Flavor - 11-06-2012, 03:58 AM
RE: NeoGPC (Latest 11-5-2012) - by Cthulhu32 - 11-06-2012, 03:01 PM
RE: NeoGPC (Latest 11-5-2012) - by Loïc - 11-09-2012, 12:20 AM
RE: NeoGPC (Latest 11-5-2012) - by Cthulhu32 - 11-09-2012, 06:17 AM
RE: NeoGPC (Latest 11-5-2012) - by fpcreator2000 - 11-09-2012, 07:26 AM
RE: NeoGPC (Latest 11-5-2012) - by Flavor - 11-10-2012, 07:08 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 11-21-2012, 01:37 PM
RE: NeoGPC (Latest 11-20-2012) - by Morden - 11-21-2012, 07:39 PM
RE: NeoGPC (Latest 11-20-2012) - by Flavor - 11-22-2012, 12:28 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 11-22-2012, 01:45 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 12-01-2012, 01:32 AM
RE: NeoGPC (Latest 11-20-2012) - by Flavor - 12-01-2012, 01:39 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 12-01-2012, 01:47 AM
RE: NeoGPC (Latest 11-20-2012) - by Loïc - 12-04-2012, 01:15 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 12-14-2012, 01:10 AM
RE: NeoGPC (Latest 11-20-2012) - by Flavor - 12-14-2012, 01:11 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 01-04-2013, 02:32 AM
RE: NeoGPC (Latest 11-20-2012) - by Cthulhu32 - 01-05-2013, 02:57 AM
RE: NeoGPC (Latest 11-20-2012) - by Flavor - 01-05-2013, 03:13 AM
RE: NeoGPC (Latest 11-20-2012) - by davidvaldivia - 01-08-2013, 01:13 AM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 01-14-2013, 02:37 PM
RE: NeoGPC v1.0.0 - by Flavor - 01-18-2013, 12:50 AM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 01-18-2013, 11:32 AM
RE: NeoGPC v1.0.0 - by Flavor - 02-01-2013, 01:22 AM
RE: NeoGPC v1.0.0 - by KeiDash - 01-22-2013, 04:04 AM
RE: NeoGPC v1.0.0 - by azoreseuropa - 03-06-2013, 01:19 AM
RE: NeoGPC v1.0.0 - by Tehcno - 03-06-2013, 11:16 AM
RE: NeoGPC v1.0.0 - by azoreseuropa - 03-18-2013, 06:18 AM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 03-20-2013, 04:14 AM
RE: NeoGPC v1.0.0 - by azoreseuropa - 04-12-2013, 11:32 AM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 06-05-2013, 02:38 PM
RE: NeoGPC v1.0.0 - by Morden - 06-06-2013, 08:51 AM
RE: NeoGPC v1.0.0 - by Flavor - 06-06-2013, 10:44 AM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 09-03-2013, 08:31 AM
RE: NeoGPC v1.0.0 - by Flavor - 09-04-2013, 02:08 AM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 09-04-2013, 11:12 AM
RE: NeoGPC v1.0.0 - by mic_ - 09-10-2013, 05:20 PM
RE: NeoGPC v1.0.0 - by Flavor - 09-10-2013, 11:58 PM
RE: NeoGPC v1.0.0 - by Cthulhu32 - 09-16-2013, 09:48 AM
RE: NeoGPC v1.0.0 - by mic_ - 09-16-2013, 07:08 PM
RE: NeoGPC v1.1.0 - by Cthulhu32 - 11-10-2013, 05:54 AM
RE: NeoGPC v1.1.0 - by azoreseuropa - 11-10-2013, 10:01 PM
RE: NeoGPC v1.1.0 - by Cthulhu32 - 11-11-2013, 11:08 AM
RE: NeoGPC v1.1.0 - by azoreseuropa - 11-11-2013, 10:59 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by mic_ - 11-12-2013, 06:01 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 11-13-2013, 07:07 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by KeiDash - 11-12-2013, 08:49 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by mic_ - 11-13-2013, 06:50 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 11-14-2013, 10:27 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 11-15-2013, 10:17 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 11-16-2013, 11:56 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 11-16-2013, 12:17 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 11-17-2013, 02:30 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 11-18-2013, 07:14 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 12-31-2013, 12:45 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Flavor - 01-01-2014, 05:07 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Morden - 01-02-2014, 06:35 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 01-03-2014, 01:50 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Morden - 01-03-2014, 08:03 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by mic_ - 01-07-2014, 10:57 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 04-16-2014, 08:15 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 07-12-2014, 01:48 AM
RE: NeoGPC v1.1.0 - (11/9/2013) - by Cthulhu32 - 10-15-2014, 02:05 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 07-01-2015, 09:47 PM
RE: NeoGPC v1.1.0 - (11/9/2013) - by azoreseuropa - 09-11-2016, 11:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)