X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=07a4795d487aac8355418a993378365fb7702030;hb=a4474952a52d20009dd3e2cc2127b8a298ef10de;hp=d955fdc9858b0f9f20d7b35ccb5150532b3fe892;hpb=f1605e99959acfb32b36ae875601fc14dd670742;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index d955fdc9..07a4795d 100755 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -80,52 +80,56 @@ void main() { /* non sprite comparison */ start = *clockw; - for(i=0; i<100 ;i++) { + //for(i=0; i<100 ;i++) { oldDrawBmp(VGA, 20, 20, &bmp, 0); - } + //} start = *clockw; - for(i=0; i<100 ;i++) { + //for(i=0; i<100 ;i++) { //0000 modexDrawBmp(&page, 20, 20, &bmp); - modexDrawBmp(&page, 0, 0, &bmp); - } + modexDrawBmp(&page, 160, 120, &bmp); + //} t1 = (*clockw-start) /18.2; start = *clockw; - for(i=0; i<100; i++) { + //for(i=0; i<100; i++) { //0000 modexCopyPageRegion(&page, &page, 20, 20, 128, 20, 64, 64); modexCopyPageRegion(&page, &page, 0, 0, 0, 0, 320, 240); - } + //} t2 = (*clockw-start)/18.2; start = *clockw; - for(i=0; i<100 ;i++) { + //for(i=0; i<100 ;i++) { oldDrawBmp(VGA, 20, 20, &bmp, 1); - } + //} start = *clockw; - for(i=0; i<100 ;i++) { + //for(i=0; i<100 ;i++) { //0000 modexDrawSprite(&page, 20, 20, &bmp); - modexDrawSprite(&page, 0, 0, &bmp); - } + modexDrawSprite(&page, 160, 120, &bmp); + //} //_fmemset(MK_FP(0xA000, 0), (int)p->plane, SCREEN_WIDTH*(SCREEN_HEIGHT*2)); - modexDrawBmp(&page, 0, 0, &bmp); + //modexDrawBmp(&page, 0, 0, &bmp); while(!kbhit()) { //DrawPBuf(&page, 0, 0, p, 0); } modexLeave(); + /*printf("\nmain=%Fp\n\n", &i); + printf("bmp.data=%Fp\n", bmp.data); + printf("*bmp.data=%Fp\n", *(bmp.data)); + printf("&bmp.data=%Fp\n", &(bmp.data)); printf("\n%d\n", sizeof(p->plane)); - printf("%d\n", sizeof(bmp)); + printf("%d\n", sizeof(bmp));*/ - for(i=0; i<(320*240); i++) + /*for(i=0; i<(320*240); i++) { fprintf(stdout, "%d", bmp.data[i]); - if(i%320==0) fprintf(stdout, "\n"); - } + if(i%bmp.width==0) fprintf(stdout, "\n"); + }*/ printf("CPU to VGA: %f\n", t1); printf("VGA to VGA: %f\n", t2); return;