What does the CPU meter indicate? Is each block 12.5% CPU time? Is it just for generating the audio stuff or also the waveform visualization?
It works on the isr with minimal CPU overhead
It costs 32 +2 byte per frame actually
Wow!!! Then even more amazing!
What does the CPU meter indicate? Is each block 12.5% CPU time? Is it just for generating the audio stuff or also the waveform visualization?
It's a basic idle time counter, which includes also the time required to draw the waveform visualizations. These visualizations are actually quite demanding, almost 1 block per channel IIRC. It is mostly indicative how busy the R800 is and is not an indication on what the CPU load is for the final in-game (z80) re-player. In the editor everything is calculated on the fly, in the re-player everything will be pre-computed.
Still, with all the waveform updates going on, it will have a 1 int peak load up to ~20% of z80 (on 60hz) and 4 int peak load average of ~16% (considering SCC+ with PSG). A few post back I posted an re-player CPU load overview for a couple of songs.
Thanks! I found the overview on page 8. 20% is quite good.
So, last couple of months I have implemented isr sample playback in the re-player (and .r3m to re-player format converter). For those who are interested in the z80 re-player, you can get it here: realfun3_rom_replayer_v051
Still plenty of (little) things to be done. But in case you are thinking about using realfun 3 music in your game, this will give you something to work with already.
Also I covered another song: End_of_the_dark
Enjoy!
Thanks for this awesome work!
I think this should go in the news with a link to the player files.
It has been a while since last update, but here it is: Realfun 3.
New in this version:
- added change base frequency function for ISR samples (could be interesting/useful... not thoroughly tested though)
- fixed bug in clear wave buffer event
- fixed bug in adjust sub-step time input (<- annoyed me for months... such a simple fix if I just bothered to look)
- added interpolation for wave stretch and squeeze effects
Because of the updated on the wave stretch and squeeze effects the song converter (rf3conv.exe) is also updated accordingly, but other than that no further changes to the re-player. You can get the example Z80 re-player ROM with source code and converter here: rf3_replayer
Enjoy!
Which mapper to run the ROM demo with the replayer?
select MegaFlashRomSccPlus in open MSX
Note there is nothing new compared to the previous version, other than two additonal short test tunes to test the updated effects.
But for anyone managing to start up the rom out of curiosity, press space to change song. The border color coding, as for CPU usage indication, is as follows:
light yellow - AY register update
light red - SCC register update
purple/magenta - SCC wave forms update
blue - SCC data processing
black - SCC ISR samples processing
yellow - AY data processing
light green - position table / data processing
cyan - idle time