kupo15
Member
I'm running into a little problem lining up my music when the FPS drops below 60. The only reason I have this issue is because I my music has an intro so in order to loop the music without the intro I have to split it up into two files. Here is a diagram
I line this up by measuring the number of frames the intro takes and set an alarm to play the loop when the alarm goes off. But I noticed when the frame rate drops below 60 this doesn't line up anymore because the alarm is tied to the frame rate but the music continues to play as if there is no lag.
How do I fix this? Do I have to decrease the alarm timer proportional to the lower frame rate or is there a simple solution I didn't think about?
I line this up by measuring the number of frames the intro takes and set an alarm to play the loop when the alarm goes off. But I noticed when the frame rate drops below 60 this doesn't line up anymore because the alarm is tied to the frame rate but the music continues to play as if there is no lag.
How do I fix this? Do I have to decrease the alarm timer proportional to the lower frame rate or is there a simple solution I didn't think about?