I wanted to keep constant music playback speed even when graphics slow down (for instance: Aleste 2 with lot of sprites on screen).
Assuming that game logic + play a chunk of music + play sound effects + rendering "ordinary" frames always takes less than 1 interrupt, in case of "crowded" frames i'm thinking to split rendering across 2 interrupts, while still performing music playback each time.
Something like that:
MAIN CYCLE:
1) update logic
2) play music and effects
3) wait for vsync (through checking a flag).
4) as for ordinary frame, just render it and go back to 1; as for "crowded" frames, render a first part, then go to point 5
5) wait for vsync.
6) render the remaining part and play another chunk of music.
7) go back to point 1.
INTERRUPT:
1) set the flag.
I'm not very expert in Msx programming, probably i wrote tons of nonsense, so please, give me your advise
