Re: [Tuxnes-devel] Speed?
Brought to you by:
tmmm
|
From: Jim U. <ji...@3e...> - 2001-06-27 19:41:56
|
At 02:23pm on 2001 June 27, Jon Niehof did write: > > I'm at the point where the actual CPU emulation (not using the dyn-rec > > engine) uses >50% of the time > Do you have some profiling code? The DC has configurable system timers, to profile a specific section I check the time at two points and subtract, then add that delta to a global counter. Also, I do this at emulation start and end time, then divide it by total # of frames for an accurate fps count. At one point I added FPS calculation to the x86 version in my copy of the tree. I doubt I have the code any more, but it's trivial to do, since you can use gettimeofday() instead of custom timer code. > That would be very cool. Heck, I'd like to run on my Dreamcast... I will probably make an initial release once I achieve 60 fps consistently. In the meantime, there are other released NES emus for the DC (they may run slow too, though). -- "Note that Unruh [9] proposed also an acoustical analog of a black hole, a dumb hole." -- http://www.st-and.ac.uk/~www_pa/group/quantumoptics/media.html ji...@3e... / 0x43340710 / 517B C658 D2CB 260D 3E1F 5ED1 6DB3 FBB9 4334 0710 |