]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
removed frames last second report in r_speeds graph
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Feb 2013 07:38:19 +0000 (07:38 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 25 Feb 2013 08:24:46 +0000 (09:24 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11900 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=74246ff16482ed3b4019f8ad22ad9e1e0cf0ffc0

cl_screen.c

index cfa8f8f51e2533856d524042e0cfbaa58f37f788..0f22782701646e3098bff4ddf386a4f4ac87c2c6 100644 (file)
@@ -1090,7 +1090,6 @@ static void R_TimeReport_EndFrame(void)
                int color, stat, stats, index, range_min, range_max;
                int graph_current, graph_length, *graph_data;
                int statindex[R_SPEEDS_GRAPH_COLORS];
-               int frameslastsecond;
                int sum;
 
                // add current stats to the graph_data
@@ -1122,21 +1121,6 @@ static void R_TimeReport_EndFrame(void)
                x = bound(0, r_speeds_graph_x.value, vid_conwidth.value - width);
                y = bound(0, r_speeds_graph_y.value, vid_conheight.value - height);
 
-               // count how many frames were in the last second
-               data = graph_data + r_stat_timedelta * graph_length;
-               index = graph_current;
-               sum = 0;
-               for (i = 0;i < graph_length;i++)
-               {
-                       sum += data[index];
-                       if (sum >= 1000000)
-                               break;
-                       index--;
-                       if (index < 0)
-                               index = graph_length - 1;
-               }
-               frameslastsecond = i;
-
                // fill background with a pattern of gray and black at one second intervals
                scalex = (float)width / (float)r_speeds_graph_seconds.value;
                for (i = 0;i < r_speeds_graph_seconds.integer + 1;i++)
@@ -1173,8 +1157,6 @@ static void R_TimeReport_EndFrame(void)
                        // count how many stats we need to graph in vertex buffer
                        stats++;
                }
-               dpsnprintf(legend, sizeof(legend), "%10i  frames last second", frameslastsecond);
-               DrawQ_String(x, y + stats * 8, legend, 0, 8, 8, 0.5f, 0.5f, 0.5f, 0.5f, 0, NULL, true, FONT_DEFAULT);
 
                if (stats)
                {