To set up the Debugger to collect file access information, follow these steps:
Since you have turned on Set Initial Breakpoints, the application should stop at the first instruction.
The file system mounts the cdrom.image file under the name /remote. You are informed that because this file system was mounted, the Macintosh remote folder is not mounted. All of the system folios are launched from the cdrom.image file. The shell automatically starts up your LaunchMe application.
Note: The person collecting file access information should be thoroughly familiar with the title.
With the 3DO Debugger running, follow these steps:
This puts the Debugger into special mode to make CD-ROM emulation as fast as possible.
This section shows how to set up all required files and how to run the layout tool again to create the optimized image.
Editing the cdrom.tcl File for the Optimized
Image
To edit the cdrom.tcl file for the optimized image, use the
settings in the table below, which differ from the settings for the
nonoptimized image you used earlier:
Table 1: Variable settings for optimized image creation.
--------------------------------------------------------
Variable |Setting
--------------------------------------------------------
label |cd-rom (the default). Make sure the label is
|NOT set to remote at this stage or you won't
|be able to debug the optimized image.
--------------------------------------------------------
megabytes |Number of megabytes of CD-ROM space your
|software will occupy. Larger is better; the
|more storage space you allocate (in excess of
|the amount actually needed for one copy of
|each file), the more room the optimizer and
|Catapult have to make multiple avatars of
|your title's files, and the more effective
|the optimization and clustering will be.
--------------------------------------------------------
catapultme|Set catapultmegabytes to the number of
gabytes |megabytes of CD-ROM space that you wish to
|make available for the Catapult file. If your
|application already uses most of the space on
|the CD-ROM, you can make this a fairly small
|number (Catapult files as small as 4 or 5 MB
|can make a big difference in startup speed).
|If your application has lots of room to
|spare, request a larger Catapult file (20 to
|30 MB or more).
|
|Since the actual benefit of Catapult varies
|greatly depending on the title, consider
|making several images, one of them with
|catapultmegabytes commented out.
--------------------------------------------------------
If you used Catapult, you can exclude certain files or entire directories, from being included in the Catapult file (see Catapult). This can make sense for Cinepak or other full-motion-video files: they take up a lot of space in the Catapult file and usually don't benefit much from being catapulted. To do this, include a statement using one of the following formats in your cdrom.tcl file:
The
excludecatapult "foo/bar/baz.cinepak"
excludecatapult "foo/bar/"
excludecatapult command accepts a single parameter, the
Portfolio pathname to a file or directory. In either case, the path is
relative to the root directory of the file system being created. The first
format identifies a specific file which is to be excluded from the
Catapult file. The second format (with a trailing "/") identifies a
directory, and specifies that all files found in that directory are to be
excluded from the Catapult file.
excludecatapult command
The tool goes through several stages of file access analysis: clustering, file organization, cluster placement, and avatar assignment. It then writes a new cdrom.image file, which is optimized for the access performed while testing the first cdrom.image file.