projects
/
eradicate
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fps counter with rle sprites
[eradicate]
/
src
/
dos
/
gfx.c
diff --git
a/src/dos/gfx.c
b/src/dos/gfx.c
index
cde439e
..
671cd8a
100644
(file)
--- a/
src/dos/gfx.c
+++ b/
src/dos/gfx.c
@@
-236,6
+236,7
@@
void *page_flip(int vsync)
static void blit_frame_lfb(void *pixels, int vsync)
{
static void blit_frame_lfb(void *pixels, int vsync)
{
+ dbg_fps(pixels);
if(vsync) wait_vsync();
memcpy(vpgaddr[frontidx], pixels, pgsize);
}
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;
unsigned int pending;
unsigned char *pptr = pixels;
+ dbg_fps(pixels);
+
if(vsync) wait_vsync();
/* assume initial window offset at 0 */
if(vsync) wait_vsync();
/* assume initial window offset at 0 */