Japanese
HARDWARE ManualVDP1 User's Manual
BackForward
VDP1 User's Manual/Chapter 6 Command Table

■Pre-clipping disabled

Preclipping disable: preclipping disable(Pclp), bit 11
Specify whether to enable or disable pre-clipping. If you specify 0, pre-clipping will be performed. If you specify 1, pre-clipping will not be performed.
One drawing command is formed by a collection of several lines, and each line is a collection of several dots. Each dot is drawn based on the clipping area (drawing area) information specified by the CPU.
Lines that are completely outside the drawing area and where the entire line does not need to be drawn can be detected in advance, and drawing efficiency can be improved by not starting drawing. Also, if one end point of a line is outside the drawing area, it will be more efficient to start drawing from within the drawing area (the line must be horizontal or vertical).
VDP1 normally performs this detection work, but when drawing small-sized items in the vertex (A)-(B) or (D)-(C) direction, the overhead caused by the detection work (up to 5 CPU clocks per line) ) will stand out and cause a decrease in drawing efficiency.
If the image is large and extends far beyond the drawing area, it will be more efficient to perform pre-clipping.
This bit is valid only for drawing commands. Please fix it to 0 for other commands.

 Pclp
 process
0 Pre-clipping, horizontal flip included
1 No pre-clipping, no horizontal flipping

Figure 6.6 Pre-clipping

■User clipping enabled

User clipping enable bit: user clipping enable bit(Clip), bit 10
When using a part drawing command, specify whether or not to draw the part according to the user clipping coordinates that have already been set. When set to 0, the drawing will be clipped and drawn according to the system clipping coordinates, ignoring the user clipping coordinates. When set to 1, it is clipped and drawn according to the user clipping coordinates and clipping mode bit (Cmod) specifications. When set to 1, it will also be clipped at the system clipping coordinates.
Both user/system clipping coordinates are undefined upon reset, so specify the system clipping coordinates after the reset and the user clipping coordinates before specifying the user clipping using the clipping register setting command.

■User clipping mode

Clipping mode bit: clipping mode bit(Cmod), bit 9
When user clipping is enabled (Clip=1), select whether to draw inside or outside the user clipping coordinates. When it is 0, the inside is drawn, and when it is 1, the outside is drawn.
When Cmod=1, the drawing area includes the already specified user clipping rectangle line. When Cmod=0, the drawing area does not include the rectangular line.

Figure 6.7 Drawing area

Do not set this bit to 1 when user clipping is disabled (Clip=0).
The combinations of user clipping enable bit and clipping mode bit are as follows:

 Clip
 Cmod
 User clipping process
0 0
 User clipping disabled
0 1
 Setting prohibited (please do not set)
1 0
 inner drawing mode
1 1
 Outside drawing mode


BackForward
HARDWARE ManualVDP1 User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997