From 405de4e597dcb111e4977bf1bbf0244e95995b01 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 23 Dec 2023 20:36:35 +0100 Subject: [PATCH] remove asm leftovers - profiling stuff --- src/r_plane.c | 21 --------------------- src/r_segs.c | 27 --------------------------- 2 files changed, 48 deletions(-) diff --git a/src/r_plane.c b/src/r_plane.c index 3578bd7b4..beb551963 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -29,13 +29,6 @@ #include "p_tick.h" #include "r_fps.h" -#ifdef TIMING -#include "p5prof.h" - INT64 mycount; - INT64 mytotal = 0; - UINT32 nombre = 100000; -#endif - // // opening // @@ -339,20 +332,6 @@ void R_MapPlane(INT32 y, INT32 x1, INT32 x2) ds_y = y; ds_x1 = x1; ds_x2 = x2; - - // profile drawer -#ifdef TIMING - ProfZeroTimer(); -#endif - - spanfunc(); - -#ifdef TIMING - RDMSR(0x10, &mycount); - mytotal += mycount; // 64bit add - if (!(nombre--)) - I_Error("spanfunc() CPU Spy reports: 0x%d %d\n", *((INT32 *)&mytotal+1), (INT32)mytotal); -#endif } // diff --git a/src/r_segs.c b/src/r_segs.c index 0c4e1d763..4623d3b0e 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -1248,19 +1248,6 @@ static boolean R_FFloorCanClip(visffloor_t *pfloor) #define HEIGHTBITS 12 #define HEIGHTUNIT (1<>FRACBITS; - - //profile stuff --------------------------------------------------------- -#ifdef TIMING - ProfZeroTimer(); -#endif colfunc(); -#ifdef TIMING - RDMSR(0x10,&mycount); - mytotal += mycount; //64bit add - - if (nombre--==0) - I_Error("R_DrawColumn CPU Spy reports: 0x%d %d\n", *((INT32 *)&mytotal+1), - (INT32)mytotal); -#endif - //profile stuff --------------------------------------------------------- // dont draw anything more for this column, since // a midtexture blocks the view