Japanese
PROGRAMMER'S GUIDEBranch playback library
BackForward
Branch playback library

4. File arrangement on disk


The total number of streams that can be read ahead is up to the CD buffer capacity (up to 200 sectors). Therefore, if a stream cannot be prefetched because its capacity has been exceeded, it will not be possible to branch without delay.

(1) Non-interleaving of branch candidates
If the branch candidates for A are B and C, and the file arrangement on the disk is as shown in Figure 4.1, then B is the only file that can be read ahead.
There is no problem if it is enough to seek and branch to B and C just by reading ahead of A. However, if it is necessary to read ahead of both B and C in order to further delay the branch selection timing, in this example, it will not be possible to branch to C without delay.

Figure 4.1 Non-interleaving of branch candidates (cannot read ahead in C)

(2) Overall interleaving of branch candidates
To branch to B and C without delay after playing A, there is a method to interleave and place B and C next to A, as shown in Figure 4.2.

Figure 4.2 Overall interleaving of branch candidates (all of B and C)

(3) Partial interleaving of branch candidates
As shown in Figure 4.3, there is also a method of dividing B into B1 and B2 and C into C1 and C2, and interleaving and arranging only B1 and C1.
In this case, it is only necessary to interleave part of B and C (B1 and C1), and it is possible to seek to B2 and C2, increasing independence. However, you will need to split the file.

Figure 4.3 Partial interleaving of branch candidates (parts of B and C)


BackForward
PROGRAMMER'S GUIDEBranch playback library
Copyright SEGA ENTERPRISES, LTD., 1997