simple profiler added
[picodrive.git] / pico / draw.c
index e474168..6670ba3 100644 (file)
@@ -1485,6 +1485,8 @@ void PicoDrawSync(int to, int blank_last_line)
   int sh = (Pico.video.reg[0xC] & 8) >> 3; // shadow/hilight?\r
   int bgc = Pico.video.reg[7];\r
 \r
+  pprof_start(draw);\r
+\r
   if (rendlines != 240)\r
     offs = 8;\r
 \r
@@ -1516,6 +1518,8 @@ void PicoDrawSync(int to, int blank_last_line)
     line++;\r
   }\r
   DrawScanline = line;\r
+\r
+  pprof_end(draw);\r
 }\r
 \r
 void PicoDrawSetColorFormat(int which)\r