Realfun 3

Page 15/18
8 | 9 | 10 | 11 | 12 | 13 | 14 | | 16 | 17 | 18

By Arjan

Paladin (787)

Arjan's picture

24-01-2022, 19:49

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?

By santiontanon

Paragon (1810)

santiontanon's picture

24-01-2022, 20:41

ARTRAG wrote:

It works on the isr with minimal CPU overhead
It costs 32 +2 byte per frame actually

Wow!!! Then even more amazing!

By GhostwriterP

Paladin (683)

GhostwriterP's picture

24-01-2022, 21:40

Quote:

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.

By Arjan

Paladin (787)

Arjan's picture

25-01-2022, 15:43

Thanks! I found the overview on page 8. 20% is quite good.

By GhostwriterP

Paladin (683)

GhostwriterP's picture

27-03-2022, 18:25

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!

By ARTRAG

Enlighted (6935)

ARTRAG's picture

27-03-2022, 21:44

Thanks for this awesome work! Big smile

By ARTRAG

Enlighted (6935)

ARTRAG's picture

28-03-2022, 21:16

I think this should go in the news with a link to the player files.

By GhostwriterP

Paladin (683)

GhostwriterP's picture

27-06-2022, 16:01

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!

By ARTRAG

Enlighted (6935)

ARTRAG's picture

27-06-2022, 16:43

Which mapper to run the ROM demo with the replayer?

By GhostwriterP

Paladin (683)

GhostwriterP's picture

27-06-2022, 18:33

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

Page 15/18
8 | 9 | 10 | 11 | 12 | 13 | 14 | | 16 | 17 | 18