Re: [AD] masked_blit 106% faster !!

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


eek!
from 64000 without the patch to 39000 with it

i have included both the results of test memory bitmap perfomance
with and without the patch
Allegro 3.9.38 (CVS), MSVC profile results

Memory bitmap size: 640x480
Color depth: 16 bpp


DRAW_MODE_SOLID results:

    putpixel()      - 2621629
    hline()         - 1685324
    vline()         - 1040928
    line()          - 79350
    rectfill()      - 101530
    circle()        - 51444
    circlefill()    - 70769
    ellipse()       - 34492
    ellipsefill()   - 47321
    arc()           - 59564
    triangle()      - 52715


DRAW_MODE_XOR results:

    putpixel()      - 2435919
    hline()         - 1148066
    vline()         - 156897
    line()          - 65978
    rectfill()      - 44479
    circle()        - 45157
    circlefill()    - 38464
    ellipse()       - 31293
    ellipsefill()   - 32352
    arc()           - 53826
    triangle()      - 36931


DRAW_MODE_COPY_PATTERN results:

    putpixel()      - 1792021
    hline()         - 968750
    vline()         - 146260
    line()          - 69183
    rectfill()      - 43722
    circle()        - 43393
    circlefill()    - 37286
    ellipse()       - 30419
    ellipsefill()   - 31435
    arc()           - 56051
    triangle()      - 36615


DRAW_MODE_SOLID_PATTERN results:

    putpixel()      - 1748147
    hline()         - 724810
    vline()         - 146874
    line()          - 65691
    rectfill()      - 27166
    circle()        - 41444
    circlefill()    - 24659
    ellipse()       - 29278
    ellipsefill()   - 22518
    arc()           - 54149
    triangle()      - 25813


DRAW_MODE_MASKED_PATTERN results:

    putpixel()      - 1847253
    hline()         - 767040
    vline()         - 164665
    line()          - 77365
    rectfill()      - 29751
    circle()        - 47112
    circlefill()    - 26773
    ellipse()       - 32085
    ellipsefill()   - 24007
    arc()           - 58464
    triangle()      - 27834


DRAW_MODE_TRANS results:

    putpixel()      - 1611967
    hline()         - 191766
    vline()         - 125427
    line()          - 49922
    rectfill()      - 4843
    circle()        - 31280
    circlefill()    - 5417
    ellipse()       - 23381
    ellipsefill()   - 5598
    arc()           - 44830
    triangle()      - 6734


Other functions:

    textout()                    - 62304
    vram->vram blit()            - N/A
    aligned vram->vram blit()    - N/A
    blit() from memory           - 195579
    aligned blit() from memory   - 223179
    vram->vram masked_blit()     - N/A
    masked_blit() from memory    - 64008
    draw_sprite()                - 109915
    draw_rle_sprite()            - 182831
    draw_compiled_sprite()       - 961726
    draw_trans_sprite()          - 39590
    draw_trans_rle_sprite()      - 46625
    draw_lit_sprite()            - 42943
    draw_lit_rle_sprite()        - 52064

Allegro 3.9.38 (CVS), MSVC profile results

Memory bitmap size: 640x480
Color depth: 16 bpp


DRAW_MODE_SOLID results:

    putpixel()      - 2634577
    hline()         - 1682279
    vline()         - 1042494
    line()          - 79278
    rectfill()      - 101367
    circle()        - 51513
    circlefill()    - 70323
    ellipse()       - 34422
    ellipsefill()   - 47591
    arc()           - 60386
    triangle()      - 52796


DRAW_MODE_XOR results:

    putpixel()      - 2440262
    hline()         - 1149203
    vline()         - 156080
    line()          - 65809
    rectfill()      - 44381
    circle()        - 45242
    circlefill()    - 38334
    ellipse()       - 31347
    ellipsefill()   - 32405
    arc()           - 53340
    triangle()      - 36874


DRAW_MODE_COPY_PATTERN results:

    putpixel()      - 1790568
    hline()         - 915662
    vline()         - 146943
    line()          - 69676
    rectfill()      - 43364
    circle()        - 43496
    circlefill()    - 36944
    ellipse()       - 30422
    ellipsefill()   - 31534
    arc()           - 55718
    triangle()      - 36453


DRAW_MODE_SOLID_PATTERN results:

    putpixel()      - 1751844
    hline()         - 713463
    vline()         - 147124
    line()          - 65562
    rectfill()      - 27064
    circle()        - 41734
    circlefill()    - 24676
    ellipse()       - 29322
    ellipsefill()   - 22596
    arc()           - 53421
    triangle()      - 26077


DRAW_MODE_MASKED_PATTERN results:

    putpixel()      - 1839587
    hline()         - 764416
    vline()         - 164266
    line()          - 77118
    rectfill()      - 29484
    circle()        - 47514
    circlefill()    - 26649
    ellipse()       - 32250
    ellipsefill()   - 24147
    arc()           - 58295
    triangle()      - 27753


DRAW_MODE_TRANS results:

    putpixel()      - 1617700
    hline()         - 191771
    vline()         - 124866
    line()          - 49951
    rectfill()      - 4847
    circle()        - 31345
    circlefill()    - 5436
    ellipse()       - 23439
    ellipsefill()   - 5557
    arc()           - 45302
    triangle()      - 6729


Other functions:

    textout()                    - 62362
    vram->vram blit()            - N/A
    aligned vram->vram blit()    - N/A
    blit() from memory           - 197206
    aligned blit() from memory   - 224641
    vram->vram masked_blit()     - N/A
    masked_blit() from memory    - 39037
    draw_sprite()                - 110227
    draw_rle_sprite()            - 182405
    draw_compiled_sprite()       - 971723
    draw_trans_sprite()          - 39522
    draw_trans_rle_sprite()      - 46556
    draw_lit_sprite()            - 42795
    draw_lit_rle_sprite()        - 52156



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/