Make tables valid markdown
This commit is contained in:
parent
18f5ace919
commit
2091516544
13 changed files with 156 additions and 1002 deletions
131
39-02.md
131
39-02.md
|
|
@ -21,120 +21,19 @@ with Borland C++, but may not work with other compilers, for it relies
|
|||
on the aforementioned interaction between memset and the selected memory
|
||||
model.
|
||||
|
||||
* * * * *
|
||||
| Implementation | Total Polygon Filling Time | DrawHorizontal LineList | ScanEdge | FillConvex Polygon |
|
||||
|-----------------------------------------------------------------------------|----------------------------|-----------------------------|------------|--------------------|
|
||||
| Drawing to display memory in mode 13h | | | | |
|
||||
| C floating point scan/DrawPixel drawing code from Chapter 38, (small model) | 11.69 | 5.80 seconds (50% of total) | 5.86 (50%) | 0.03 (<1%) |
|
||||
| C floating point scan/memset drawing (Listing 39.1, compact model) | 6.64 | 0.49 (7%) | 6.11 (92%) | 0.04 (<1%) |
|
||||
| C integer scan/memset drawing (Listing 39.1 & Listing 39.2, compact model) | 0.60 | 0.49 (82%) | 0.07 (12%) | 0.04 (7%) |
|
||||
| C integer scan/ASM drawing (Listing 39.2 & Listing 39.3, small model) | 0.45 | 0.36 (80%) | 0.06 (13%) | 0.03 (7%) |
|
||||
| ASM integer scan/ASM drawing (Listing 40.3 & Listing 40.4, small model) | 0.42 | 0.36 (86%) | 0.03 (7%) | 0.03 (7%) |
|
||||
| Drawing to system memory | | | | |
|
||||
| C integer scan/memset drawing (Listing 39.1 & Listing 39.2, compact model) | 0.31 | 0.20 (65%) | 0.07 (23%) | 0.04 (13%) |
|
||||
| ASM integer scan/ASM drawing (Listing 39.3 & Listing 39.4, small model) | 0.13 | 0.07 (54%) | 0.03 (23%) | 0.03 (23%) |
|
||||
|
||||
Implementation
|
||||
|
||||
Total Polygon\
|
||||
Filling Time
|
||||
|
||||
DrawHorizontal\
|
||||
LineList
|
||||
|
||||
ScanEdge
|
||||
|
||||
FillConvex\
|
||||
Polygon
|
||||
|
||||
* * * * *
|
||||
|
||||
Drawing to display memory in mode 13h
|
||||
|
||||
C floating point scan/DrawPixel drawing code from Chapter 38, (small
|
||||
model)
|
||||
|
||||
11.69
|
||||
|
||||
5.80 seconds\
|
||||
(50% of total)
|
||||
|
||||
5.86\
|
||||
(50%)
|
||||
|
||||
0.03\
|
||||
(\<1%)
|
||||
|
||||
C floating point scan/memset drawing (Listing 39.1, compact model)
|
||||
|
||||
6.64
|
||||
|
||||
0.49\
|
||||
(7%)
|
||||
|
||||
6.11\
|
||||
(92%)
|
||||
|
||||
0.04\
|
||||
(\<1%)
|
||||
|
||||
C integer scan/memset drawing (Listing 39.1 & Listing 39.2, compact
|
||||
model)
|
||||
|
||||
0.60
|
||||
|
||||
0.49\
|
||||
(82%)
|
||||
|
||||
0.07\
|
||||
(12%)
|
||||
|
||||
0.04\
|
||||
(7%)
|
||||
|
||||
C integer scan/ASM drawing (Listing 39.2 & Listing 39.3, small model)
|
||||
|
||||
0.45
|
||||
|
||||
0.36\
|
||||
(80%)
|
||||
|
||||
0.06\
|
||||
(13%)
|
||||
|
||||
0.03\
|
||||
(7%)
|
||||
|
||||
ASM integer scan/ASM drawing (Listing 40.3 & Listing 40.4,small model)
|
||||
|
||||
0.42
|
||||
|
||||
0.36\
|
||||
(86%)
|
||||
|
||||
0.03\
|
||||
(7%)
|
||||
|
||||
0.03\
|
||||
(7%)
|
||||
|
||||
Drawing to system memory
|
||||
|
||||
C integer scan/memset drawing (Listing 39.1 & Listing 39.2,compact
|
||||
model)
|
||||
|
||||
0.31
|
||||
|
||||
0.20\
|
||||
(65%)
|
||||
|
||||
0.07\
|
||||
(23%)
|
||||
|
||||
0.04\
|
||||
(13%)
|
||||
|
||||
ASM integer scan/ASM drawing (Listing 39.3 & Listing 39.4,small model)
|
||||
|
||||
0.13
|
||||
|
||||
0.07\
|
||||
(54%)
|
||||
|
||||
0.03\
|
||||
(23%)
|
||||
|
||||
0.03\
|
||||
(23%)
|
||||
Table: Table 39.1 Polygon fill performance.
|
||||
|
||||
All times are in seconds, as measured with Turbo Profiler on a 20-MHz
|
||||
cached 386 with no math coprocessor installed. Note that time spent in
|
||||
|
|
@ -144,12 +43,6 @@ assembled with TASM. Percentages of combined times are rounded to the
|
|||
nearest percent, so the sum of the three percentages does not always
|
||||
equal 100.
|
||||
|
||||
* * * * *
|
||||
|
||||
Table 39.1 Polygon fill performance.
|
||||
|
||||
* * * * *
|
||||
|
||||
**LISTING 39.1 L39-1.C**
|
||||
|
||||
/* Draws all pixels in the list of horizontal lines passed in, in
|
||||
|
|
|
|||
Loading…
Reference in a new issue