Hi,
Does anyone know what could cause the rom to lag when playing a PCM track?
Yesterday I hacked Zelda to play PCM tracks instead of spc tracks (It can fallback as well).
I ported the code over to Kyuuyaku MEGAMI tensei but the odd thing is the game lags before loading and playing the track.
I did exactly as I did on Zelda - find the address where music is set, jsl to unused space, validate MSU presence, play MSU and RTL (if msu exists) else play spc and RTL.
Worked perfectly for Zelda but there is nasty lag with Kyuuyaku before the PCM plays. Not sure why, maybe I chose a bad spot to put my msu code? Basically I found a bunch of free FFs around $4FDB60.
I dont think that's the issue though because I can JSL to that area, run the original code, RTL and there is no lag.
I don't have access to my PC now but do you think maybe there's too much of a big load on the cpu that's causing the lag? Maybe I could find the JSL prior to the real music code and instead JSL to my new area then fill it up?
I don't really understand how CPU cycles work but if it gets to high is this what causes lag or would it just break the game instead?
If anyone is wondering, the point of interest in kyuuyaku is
$01EC16
A5 FC
8D 40 21
This loads $00FC and stores it into $2140. Then the music goes off. This is the code that I changed to JSL to my new area at $4FDB60.
Does anyone know what could cause the rom to lag when playing a PCM track?
Yesterday I hacked Zelda to play PCM tracks instead of spc tracks (It can fallback as well).
I ported the code over to Kyuuyaku MEGAMI tensei but the odd thing is the game lags before loading and playing the track.
I did exactly as I did on Zelda - find the address where music is set, jsl to unused space, validate MSU presence, play MSU and RTL (if msu exists) else play spc and RTL.
Worked perfectly for Zelda but there is nasty lag with Kyuuyaku before the PCM plays. Not sure why, maybe I chose a bad spot to put my msu code? Basically I found a bunch of free FFs around $4FDB60.
I dont think that's the issue though because I can JSL to that area, run the original code, RTL and there is no lag.
I don't have access to my PC now but do you think maybe there's too much of a big load on the cpu that's causing the lag? Maybe I could find the JSL prior to the real music code and instead JSL to my new area then fill it up?
I don't really understand how CPU cycles work but if it gets to high is this what causes lag or would it just break the game instead?
If anyone is wondering, the point of interest in kyuuyaku is
$01EC16
A5 FC
8D 40 21
This loads $00FC and stores it into $2140. Then the music goes off. This is the code that I changed to JSL to my new area at $4FDB60.