]> 4ch.mooo.com Git - 16.git/commitdiff
planrpcx.exe now can time it's drawing~
authorsparky4 <sparky4@cock.li>
Fri, 23 Oct 2015 22:47:35 +0000 (17:47 -0500)
committersparky4 <sparky4@cock.li>
Fri, 23 Oct 2015 22:47:35 +0000 (17:47 -0500)
15 files changed:
16.exe
bakapi.exe
exmmtest.exe
fontgfx.exe
maptest.exe
palettec.exe
palettel.exe
pcxtest.exe
pcxtest2.exe
planrpcx.exe
scroll.exe
src/lib/modex16.c
src/planrpcx.c
test.exe
test2.exe

diff --git a/16.exe b/16.exe
index 8b71c15c75eeb17b69b64ccfb866db7378c51de0..9bd7485539a4ad3fedfd6ef53d561bd543653f83 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index cf5fc7cf4d8dd1517e2c0acd21137091f40350ee..d47a44a0d0e3f1f81e5e57e082c3bfcf090d355c 100755 (executable)
Binary files a/bakapi.exe and b/bakapi.exe differ
index a26c6365a09b2f387a3fc1910fb30a31dfe356a9..81bcbabbee7ed05e61f71860f24001287dae1bfa 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index bde105c1d71c9efcb294be1cd56a811f18306c15..e643b2efff0807ed6d2139cb1472622f9e22bec9 100755 (executable)
Binary files a/fontgfx.exe and b/fontgfx.exe differ
index 2a49e37a76459ce517848eee13add1581b939a6c..8e8169c90af7dc3269ed1daee4ad5428361e28c6 100755 (executable)
Binary files a/maptest.exe and b/maptest.exe differ
index bb67d4b08376e157fb75e3d37767a6ab11d8a6c6..8d0360092cdfdddc374d6ba0cbfc341ed33909f2 100755 (executable)
Binary files a/palettec.exe and b/palettec.exe differ
index cbde6f44b92c5b9da0c75415d6a4d8297e3b6d07..9e9c506b292aa345865a048583f9ab0b5e01c981 100755 (executable)
Binary files a/palettel.exe and b/palettel.exe differ
index 52d91504062326ef283337be872271b9b968d7f1..7190cfd2c3c22c4c03151b34a445c87df20fa503 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 3a0dfd64db3bfce35f41a2b6d224a62de74d32a6..a188e1435a01e38e0a6ca61685eec7ac70a04baf 100755 (executable)
Binary files a/pcxtest2.exe and b/pcxtest2.exe differ
index 186eb2c5a5c05f7a46bd127f3109fc7054e0be7e..0ae32912ceb4fca750bff45055d31e15fadcbda8 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 87fcf0a81fc55dc064f407118511ef008e414c74..31c9c95ed0a0fb6e9af62d80e52f973b173d16c0 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index 80730a2b958e3d5b9de8b9db2101b8c049ea9b3e..3a76b8d49ef2500f43e9a9e45e2aeca0d3310e50 100755 (executable)
@@ -422,7 +422,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite)
        for(plane=0; plane < 4; plane++) {\r
                i=0;\r
                modexSelectPlane(PLANE(plane+x));\r
-               for(; y < p->height-1; y++) {\r
+               for(; y < py+p->height; y++) {\r
                        //for(px=0; px < p->width; px++) {\r
                                //printf("%02X ", (int) p->plane[plane][i++]);\r
 //                             _fmemcpy(buff, &(p->plane[plane][i+=p->pwidth]), p->pwidth);\r
@@ -431,7 +431,6 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite)
                                _fmemcpy(page->data + (((page->width/4) * (y+page->dy)) + ((x+page->dx) / 4)), &(p->plane[plane][i+=p->pwidth]), p->pwidth);\r
                        //}\r
                }\r
-               //getch();\r
                x=px;\r
                y=py;\r
        }\r
index 1eafcd6c9efdfdd072362c040a7268e5d7df80bc..4829b54f7181cc05aa548798afde56aecc40f8ae 100755 (executable)
@@ -71,21 +71,18 @@ baka = 1;
        /* non sprite comparison */\r
        start = *clockw;\r
 //             oldDrawBmp(VGA, 20, 20, &bmp, 0);\r
-//0000         modexDrawBmp(&gvar.video.page[0], 20, 20, &bmp);\r
-//             modexDrawBmp(&gvar.video.page[0], 160, 120, &bmp);\r
-//     t1 = (*clockw-start) /18.2;\r
+       for(i=0; i<100 ;i++) {\r
+               modexDrawBmp(&gvar.video.page[0], 32, 32, &bmp);\r
+       }\r
+       t1 = (*clockw-start) /18.2;\r
 //     start = *clockw;\r
-//0000         modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 20, 20, 128, 20, 64, 64);\r
 //             modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 0, 0, 0, 0, 320, 240);\r
 //     t2 = (*clockw-start)/18.2;\r
-//     start = *clockw;\r
-//             oldDrawBmp(VGA, 20, 20, &bmp, 1);\r
-//0000         modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp);\r
-//             modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp);\r
+       start = *clockw;\r
        for(i=0; i<100 ;i++) {\r
-               DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+               DrawPBuf(&gvar.video.page[0], gvar.video.page[0].sw-(p->width), gvar.video.page[0].sh-(p->height), p, 0);\r
        }\r
-       t1 = (*clockw-start) /18.2;\r
+       t2 = (*clockw-start) /18.2;\r
        while(!kbhit())\r
        {\r
        }\r
@@ -114,8 +111,8 @@ baka = 1;
        fprintf(stderr,"ppw=%d\n", p->pwidth);\r
        fprintf(stderr,"%d\n", sizeof(bmp));\r
        planar_buf_free(p);\r
-       fprintf(stderr, "CPU to VGA: %f\n", t1);\r
-//     fprintf(stderr, "VGA to VGA: %f\n", t2);\r
+       fprintf(stderr, "modexDrawBmp:  %f\n", t1);\r
+       fprintf(stderr, "DrawPBuf:      %f\n", t2);\r
        fprintf(stderr, "gvar.video.page[0].width: %u\n", gvar.video.page[0].width);\r
        fprintf(stderr, "gvar.video.page[0].height: %u\n", gvar.video.page[0].height);\r
        return;\r
index 5bbef7eb86bdd3f4a5f1cf84d36dfd5c957cacd5..44c5f73669194b746e81026da5a6f65fbbcdbe8f 100755 (executable)
Binary files a/test.exe and b/test.exe differ
index 6738ad4a9008f6cc13bfeabc5426659eb5633149..e82e1004905ab440481609848a37fa069f9707ad 100755 (executable)
Binary files a/test2.exe and b/test2.exe differ