mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
[renderer] Improve time graph display
It now shows 200 frames and markings for 0, 1, 2, 2.5, 3.3, 5 and 10ms.
This commit is contained in:
parent
958b6ff1d8
commit
b35854c706
1 changed files with 8 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
|||
#include "r_internal.h"
|
||||
|
||||
|
||||
#define MAX_TIMINGS 100
|
||||
#define MAX_TIMINGS 200
|
||||
int graphval;
|
||||
|
||||
|
||||
|
@ -79,6 +79,13 @@ R_TimeGraph (view_pos_t abs, view_pos_t len)
|
|||
}
|
||||
memcpy (timings + o, r_timings + a, l * sizeof (timings[0]));
|
||||
r_funcs->R_LineGraph (abs.x, abs.y, r_timings, MAX_TIMINGS, 200);
|
||||
r_funcs->Draw_Line (abs.x, abs.y, abs.x + MAX_TIMINGS, abs.y, 0x0f);
|
||||
r_funcs->Draw_Line (abs.x, abs.y - 10, abs.x + MAX_TIMINGS, abs.y - 10, 0x3f);
|
||||
r_funcs->Draw_Line (abs.x, abs.y - 20, abs.x + MAX_TIMINGS, abs.y - 20, 0x3f);
|
||||
r_funcs->Draw_Line (abs.x, abs.y - 25, abs.x + MAX_TIMINGS, abs.y - 25, 0x3f);
|
||||
r_funcs->Draw_Line (abs.x, abs.y - 33, abs.x + MAX_TIMINGS, abs.y - 33, 0x3f);
|
||||
r_funcs->Draw_Line (abs.x, abs.y - 50, abs.x + MAX_TIMINGS, abs.y - 50, 0x3f);
|
||||
r_funcs->Draw_Line (abs.x, abs.y - 100, abs.x + MAX_TIMINGS, abs.y - 100, 0x3f);
|
||||
//r_data->graphheight->int_val);
|
||||
|
||||
timex = (timex + 1) % MAX_TIMINGS;
|
||||
|
|
Loading…
Reference in a new issue