fps counter with rle sprites
[eradicate] / src / dos / gfx.c
index cde439e..671cd8a 100644 (file)
@@ -236,6 +236,7 @@ void *page_flip(int vsync)
 
 static void blit_frame_lfb(void *pixels, int vsync)
 {
+       dbg_fps(pixels);
        if(vsync) wait_vsync();
        memcpy(vpgaddr[frontidx], pixels, pgsize);
 }
@@ -246,6 +247,8 @@ static void blit_frame_banked(void *pixels, int vsync)
        unsigned int pending;
        unsigned char *pptr = pixels;
 
+       dbg_fps(pixels);
+
        if(vsync) wait_vsync();
 
        /* assume initial window offset at 0 */