Re: MAME on ODROID-N2 (Linux)
[Re: Steve Bourg]
#116228
10/20/19 12:08 AM
|
Joined: Mar 2001
Posts: 16,389
R. Belmont
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,389 |
Yeah, the profile will most benefit the specific driver you run while collecting the profile data, but for your use case that's fine.
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: Steve Bourg]
#116234
10/20/19 06:33 PM
|
Joined: Aug 2019
Posts: 33
Steve Bourg
OP
Member
|
OP
Member
Joined: Aug 2019
Posts: 33 |
# ./mame_gcc8_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -str 120 -sdlvideofps
116.19s, 6963 F, avrg game: 59.93 FPS 16.69 ms/f, avrg video: 192.33 FPS 5.20 ms/f, last video: inf FPS 5.82 ms/f
117.19s, 7023 F, avrg game: 59.93 FPS 16.69 ms/f, avrg video: 192.13 FPS 5.20 ms/f, last video: inf FPS 5.72 ms/f
118.19s, 7083 F, avrg game: 59.93 FPS 16.69 ms/f, avrg video: 191.89 FPS 5.21 ms/f, last video: inf FPS 5.18 ms/f
# ./mame_gcc7_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -str 120 -sdlvideofps
116.30s, 6968 F, avrg game: 59.91 FPS 16.69 ms/f, avrg video: 355.04 FPS 2.82 ms/f, last video: inf FPS 3.02 ms/f
117.30s, 7028 F, avrg game: 59.91 FPS 16.69 ms/f, avrg video: 354.23 FPS 2.82 ms/f, last video: inf FPS 3.96 ms/f
118.31s, 7088 F, avrg game: 59.91 FPS 16.69 ms/f, avrg video: 353.72 FPS 2.83 ms/f, last video: inf FPS 3.24 ms/f
Can someone help me understand which one of the above -sdlvideofps sets is a better result? I don't know if the winner for -sdlvideofps is the loser in the -bench results. Or is it not valid to compare in this way?
# ./mame_gcc8_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -bench 120
Average speed: 158.80% (119 seconds)
# ./mame_gcc8_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -bench 120
Average speed: 158.40% (119 seconds)
# ./mame_gcc8_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -bench 120
Average speed: 158.25% (119 seconds)
# ./mame_gcc7_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -bench 120
Average speed: 129.98% (119 seconds)
# ./mame_gcc7_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -bench 120
Average speed: 130.43% (119 seconds)
# ./mame_gcc7_fprof-use maciici -video accel -hard1 OS_608_500MB.chd -nbc enetnb -bench 120
Average speed: 129.90% (119 seconds)
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: Steve Bourg]
#116235
10/20/19 11:59 PM
|
Joined: Mar 2001
Posts: 16,389
R. Belmont
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,389 |
It's pretty self explanatory. "avrg game" is the emulation speed without video uploading, and "avrg video" is the video uploading speed without the emulation.
In your first set of results the video path is almost twice as fast (355 FPS vs 191) for the GCC7 compile. But the emulation speed is clearly making up the difference; you need to run with -nothrottle to find out the actual difference in the "avrg game" numbers, otherwise they lock to the frame rate of the system.
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: R. Belmont]
#116239
10/21/19 12:59 AM
|
Joined: Aug 2019
Posts: 33
Steve Bourg
OP
Member
|
OP
Member
Joined: Aug 2019
Posts: 33 |
.. you need to run with -nothrottle to find out the actual difference in the "avrg game" numbers, otherwise they lock to the frame rate of the system. -nothrottle is having no effect on these builds of mame. Is that because I only compiled for the mac system (SOURCES=src/mame/drivers/mac.cpp)? These latest builds are holding 99.5% emulation speed and 60 fps, and the gcc8 profiled build in particular is hovering at 82% cpu utilization. It doesn't appear to be hitting resource exhaust.
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: Steve Bourg]
#116241
10/21/19 02:32 AM
|
Joined: Feb 2004
Posts: 2,093
Vas Crabb
Very Senior Member
|
Very Senior Member
Joined: Feb 2004
Posts: 2,093 |
Your video options are probably causing it to wait for vertical blanking before pushing out frames. This will limit the emulated system speed to the point where the emulated frame rate is equal to the host frame rate.
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: Steve Bourg]
#116242
10/21/19 11:11 AM
|
Joined: Mar 2001
Posts: 16,389
R. Belmont
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,389 |
Ahh, yeah. -novsync will stop that.
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: R. Belmont]
#116244
10/21/19 03:03 PM
|
Joined: Aug 2019
Posts: 33
Steve Bourg
OP
Member
|
OP
Member
Joined: Aug 2019
Posts: 33 |
I tried -nowaitvsync, but it won't budge. And I fought with this once before, trying a number of combinations, and I couldn't move the needle. I'm trying to understand whether I should go forward with the profiled gcc7 vs. profiled gcc8 build. Both achieve the same system emulation performance and same perceivable experience with this 1080p 60 fps display. The gcc8 build runs at lower cpu load (by 10-15%), which I suspect will better tolerate burdens from future mame code changes. The other thing to note about the profiled gcc8 build is that avrg video creeps upward over time:
236.41s, 14170 F, avrg game: 59.94 FPS 16.68 ms/f, avrg video: 269.46 FPS 3.71 ms/f, last video: inf FPS 3.66 ms/f
237.42s, 14230 F, avrg game: 59.94 FPS 16.68 ms/f, avrg video: 269.51 FPS 3.71 ms/f, last video: inf FPS 3.37 ms/f
238.42s, 14290 F, avrg game: 59.94 FPS 16.68 ms/f, avrg video: 269.57 FPS 3.71 ms/f, last video: inf FPS 3.59 ms/f
The thing that I'm running away from is that the profiled gcc7 build is sustaining 101% cpu utilization. The profiled gcc7 build's avrg video moves upward with time as well:
238.67s, 14173 F, avrg game: 59.38 FPS 16.84 ms/f, avrg video: 652.83 FPS 1.53 ms/f, last video: inf FPS 1.16 ms/f
239.68s, 14233 F, avrg game: 59.38 FPS 16.84 ms/f, avrg video: 653.38 FPS 1.53 ms/f, last video: inf FPS 2.96 ms/f
240.69s, 14293 F, avrg game: 59.38 FPS 16.84 ms/f, avrg video: 653.98 FPS 1.53 ms/f, last video: inf FPS 1.15 ms/f
I'm still not sure I understand this avrg video metric (e.g. does it fluctuate with screen drawing changes, or is higher always better? Is it meaningful if it's higher than my fixed avrg game fps?), and I don't don't know how to weigh its value against the cpu load metric.
|
|
|
Re: MAME on ODROID-N2 (Linux)
[Re: Steve Bourg]
#116245
10/21/19 03:09 PM
|
Joined: Mar 2001
Posts: 16,389
R. Belmont
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,389 |
The ms/f figure is the important one. At 60 FPS, you have 16.67 ms to complete an emulated frame. If the video takes 1.53 ms you have that much more time to complete the actual system emulation than you do when it's taking 3.71.
|
|
|
|
4 registered members (robcfg, zillion, Pernod, 1 invisible),
92
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics8,721
Posts114,628
Members4,873
|
Most Online510 Aug 26th, 2019
|
|
|