4 cvar_t scr_viewsize = {CVAR_SAVE, "viewsize","100"};
5 cvar_t scr_fov = {CVAR_SAVE, "fov","90"}; // 10 - 170
6 cvar_t scr_conspeed = {CVAR_SAVE, "scr_conspeed","900"}; // LordHavoc: quake used 300
7 cvar_t scr_centertime = {0, "scr_centertime","2"};
8 cvar_t scr_showram = {CVAR_SAVE, "showram","1"};
9 cvar_t scr_showturtle = {CVAR_SAVE, "showturtle","0"};
10 cvar_t scr_showpause = {CVAR_SAVE, "showpause","1"};
11 cvar_t scr_printspeed = {0, "scr_printspeed","8"};
12 cvar_t scr_2dresolution = {CVAR_SAVE, "scr_2dresolution", "1"};
13 cvar_t cl_avidemo = {0, "cl_avidemo", "0"};
15 qboolean scr_initialized; // ready to draw
17 float scr_con_current;
18 float scr_conlines; // lines of console to display
23 //qboolean scr_disabled_for_loading;
24 qboolean scr_drawloading = false;
25 //float scr_disabled_time;
27 static qbyte menuplyr_pixels[4096];
29 void DrawCrosshair(int num);
30 void V_CalcRefdef (void);
31 static void SCR_ScreenShot_f (void);
32 static void R_Envmap_f (void);
35 void R_ClearScreen(void);
38 ===============================================================================
42 ===============================================================================
45 char scr_centerstring[1024];
46 float scr_centertime_start; // for slow victory printing
47 float scr_centertime_off;
56 Called for important messages that should stay in the center of the screen
60 void SCR_CenterPrint (char *str)
62 strncpy (scr_centerstring, str, sizeof(scr_centerstring)-1);
63 scr_centertime_off = scr_centertime.value;
64 scr_centertime_start = cl.time;
66 // count the number of lines for centering
77 void SCR_DrawCenterString (void)
84 // the finale prints the characters one at a time
86 remaining = scr_printspeed.value * (cl.time - scr_centertime_start);
91 start = scr_centerstring;
93 if (scr_center_lines <= 4)
94 y = vid.conheight*0.35;
100 // scan the width of the line
101 for (l=0 ; l<40 ; l++)
102 if (start[l] == '\n' || !start[l])
104 x = (vid.conwidth - l*8)/2;
109 DrawQ_String(x, y, start, l, 8, 8, 1, 1, 1, 1, 0);
117 while (*start && *start != '\n')
122 start++; // skip the \n
126 void SCR_CheckDrawCenterString (void)
128 if (scr_center_lines > scr_erase_lines)
129 scr_erase_lines = scr_center_lines;
131 scr_centertime_off -= host_frametime;
133 if (scr_centertime_off <= 0 && !cl.intermission)
135 if (key_dest != key_game)
138 SCR_DrawCenterString ();
146 void SCR_DrawRam (void)
148 // if (!scr_showram.integer)
150 // DrawQ_Pic (32, 0, "ram", 0, 0, 1, 1, 1, 1, 0);
158 void SCR_DrawTurtle (void)
162 if (cls.state != ca_connected)
165 if (!scr_showturtle.integer)
168 if (host_frametime < 0.1)
178 DrawQ_Pic (0, 0, "turtle", 0, 0, 1, 1, 1, 1, 0);
186 void SCR_DrawNet (void)
188 if (cls.state != ca_connected)
190 if (realtime - cl.last_received_message < 0.3)
192 if (cls.demoplayback)
195 DrawQ_Pic (64, 0, "net", 0, 0, 1, 1, 1, 1, 0);
203 void SCR_DrawPause (void)
207 if (cls.state != ca_connected)
210 if (!scr_showpause.integer) // turn off for screenshots
216 pic = Draw_CachePic ("gfx/pause.lmp");
217 DrawQ_Pic ((vid.conwidth - pic->width)/2, (vid.conheight - pic->height)/2, "gfx/pause.lmp", 0, 0, 1, 1, 1, 1, 0);
227 void SCR_DrawLoading (void)
231 //if (!scr_drawloading)
234 pic = Draw_CachePic ("gfx/loading.lmp");
235 DrawQ_Pic ((vid.conwidth - pic->width)/2, (vid.conheight - pic->height)/2, "gfx/loading.lmp", 0, 0, 1, 1, 1, 1, 0);
240 //=============================================================================
245 SCR_SetUpToDrawConsole
248 void SCR_SetUpToDrawConsole (void)
252 // decide on the height of the console
253 con_forcedup = !cl.worldmodel || cls.signon != SIGNONS;
257 scr_conlines = vid.conheight; // full screen
258 scr_con_current = scr_conlines;
260 else if (key_dest == key_console)
261 scr_conlines = vid.conheight/2; // half screen
263 scr_conlines = 0; // none visible
265 if (scr_conlines < scr_con_current)
267 scr_con_current -= scr_conspeed.value*host_realframetime;
268 if (scr_conlines > scr_con_current)
269 scr_con_current = scr_conlines;
272 else if (scr_conlines > scr_con_current)
274 scr_con_current += scr_conspeed.value*host_realframetime;
275 if (scr_conlines < scr_con_current)
276 scr_con_current = scr_conlines;
285 void SCR_DrawConsole (void)
289 Con_DrawConsole (scr_con_current);
294 if (key_dest == key_game || key_dest == key_message)
295 Con_DrawNotify (); // only draw notify in game
301 SCR_BeginLoadingPlaque
305 void SCR_BeginLoadingPlaque (void)
310 S_StopAllSounds (true);
312 // if (cls.state != ca_connected)
314 // if (cls.signon != SIGNONS)
317 // redraw with no console and the loading plaque
318 // Con_ClearNotify ();
319 // scr_centertime_off = 0;
320 // scr_con_current = 0;
322 scr_drawloading = true;
324 scr_drawloading = true;
326 //scr_drawloading = false;
328 // scr_disabled_for_loading = true;
329 // scr_disabled_time = realtime;
338 void SCR_EndLoadingPlaque (void)
341 if (!scr_drawloading)
344 // scr_disabled_for_loading = false;
345 scr_drawloading = false;
350 //=============================================================================
352 char *scr_notifystring;
354 void SCR_DrawNotifyString (void)
360 start = scr_notifystring;
362 y = vid.conheight*0.35;
366 // scan the width of the line
367 for (l=0 ; l<40 ; l++)
368 if (start[l] == '\n' || !start[l])
370 x = (vid.conwidth - l*8)/2;
371 DrawQ_String (x, y, start, l, 8, 8, 1, 1, 1, 1, 0);
375 while (*start && *start != '\n')
380 start++; // skip the \n
385 char r_speeds_string[1024];
386 int speedstringcount, r_timereport_active;
387 double r_timereport_temp = 0, r_timereport_current = 0, r_timereport_start = 0;
389 void R_TimeReport(char *desc)
395 if (!r_timereport_active)
398 r_timereport_temp = r_timereport_current;
399 r_timereport_current = Sys_DoubleTime();
400 t = (int) ((r_timereport_current - r_timereport_temp) * 1000000.0);
402 sprintf(tempbuf, "%8i %s", t, desc);
403 length = strlen(tempbuf);
405 tempbuf[length++] = ' ';
407 if (speedstringcount + length > (vid.conwidth / 8))
409 strcat(r_speeds_string, "\n");
410 speedstringcount = 0;
412 // skip the space at the beginning if it's the first on the line
413 if (speedstringcount == 0)
415 strcat(r_speeds_string, tempbuf + 1);
416 speedstringcount = length - 1;
420 strcat(r_speeds_string, tempbuf);
421 speedstringcount += length;
425 void R_TimeReport_Start(void)
427 r_timereport_active = r_speeds.integer && cl.worldmodel && cls.state == ca_connected;
428 r_speeds_string[0] = 0;
429 if (r_timereport_active)
431 speedstringcount = 0;
432 AngleVectors (r_refdef.viewangles, vpn, NULL, NULL);
433 //sprintf(r_speeds_string, "org:'%c%6.2f %c%6.2f %c%6.2f' ang:'%c%3.0f %c%3.0f %c%3.0f' dir:'%c%2.3f %c%2.3f %c%2.3f'\n%6i walls %6i dlitwalls %7i modeltris %7i meshtris\nBSP: %6i faces %6i nodes %6i leafs\n%4i models %4i bmodels %4i sprites %5i particles %3i dlights\n",
434 // r_refdef.vieworg[0] < 0 ? '-' : ' ', fabs(r_refdef.vieworg[0]), r_refdef.vieworg[1] < 0 ? '-' : ' ', fabs(r_refdef.vieworg[1]), r_refdef.vieworg[2] < 0 ? '-' : ' ', fabs(r_refdef.vieworg[2]),
435 // r_refdef.viewangles[0] < 0 ? '-' : ' ', fabs(r_refdef.viewangles[0]), r_refdef.viewangles[1] < 0 ? '-' : ' ', fabs(r_refdef.viewangles[1]), r_refdef.viewangles[2] < 0 ? '-' : ' ', fabs(r_refdef.viewangles[2]),
436 // vpn[0] < 0 ? '-' : ' ', fabs(vpn[0]), vpn[1] < 0 ? '-' : ' ', fabs(vpn[1]), vpn[2] < 0 ? '-' : ' ', fabs(vpn[2]),
437 sprintf(r_speeds_string,
438 "org:'%+8.2f %+8.2f %+8.2f' ang:'%+4.0f %+4.0f %+4.0f' dir:'%+2.3f %+2.3f %+2.3f'\n"
439 "world:%6i faces%6i nodes%6i leafs%6i walls%6i dlitwalls\n"
440 "%5i models%5i bmodels%5i sprites%6i particles%4i dlights\n"
441 "%6i modeltris%6i transmeshs%6i transtris%6i meshs%6i meshtris\n",
442 r_refdef.vieworg[0], r_refdef.vieworg[1], r_refdef.vieworg[2], r_refdef.viewangles[0], r_refdef.viewangles[1], r_refdef.viewangles[2], vpn[0], vpn[1], vpn[2],
443 c_faces, c_nodes, c_leafs, c_brush_polys, c_light_polys,
444 c_models, c_bmodels, c_sprites, c_particles, c_dlights,
445 c_alias_polys, c_transmeshs, c_transtris, c_meshs, c_meshtris);
459 r_timereport_start = Sys_DoubleTime();
463 void R_TimeReport_End(void)
465 r_timereport_current = r_timereport_start;
466 R_TimeReport("total");
468 if (r_timereport_active)
472 for (i = 0;r_speeds_string[i];i++)
473 if (r_speeds_string[i] == '\n')
475 y = vid.conheight - sb_lines - lines * 8/* - 8*/;
477 DrawQ_Fill(0, y, vid.conwidth, lines * 8, 0, 0, 0, 0.5, 0);
478 while (r_speeds_string[i])
481 while (r_speeds_string[i] && r_speeds_string[i] != '\n')
484 DrawQ_String(0, y, r_speeds_string + j, i - j, 8, 8, 1, 1, 1, 1, 0);
485 if (r_speeds_string[i] == '\n')
499 void SCR_SizeUp_f (void)
501 Cvar_SetValue ("viewsize",scr_viewsize.value+10);
512 void SCR_SizeDown_f (void)
514 Cvar_SetValue ("viewsize",scr_viewsize.value-10);
517 void CL_Screen_Init(void)
521 Cvar_RegisterVariable (&scr_fov);
522 Cvar_RegisterVariable (&scr_viewsize);
523 Cvar_RegisterVariable (&scr_conspeed);
524 Cvar_RegisterVariable (&scr_showram);
525 Cvar_RegisterVariable (&scr_showturtle);
526 Cvar_RegisterVariable (&scr_showpause);
527 Cvar_RegisterVariable (&scr_centertime);
528 Cvar_RegisterVariable (&scr_printspeed);
529 Cvar_RegisterVariable (&scr_2dresolution);
530 Cvar_RegisterVariable (&cl_avidemo);
532 Cmd_AddCommand ("sizeup",SCR_SizeUp_f);
533 Cmd_AddCommand ("sizedown",SCR_SizeDown_f);
534 Cmd_AddCommand ("screenshot",SCR_ScreenShot_f);
535 Cmd_AddCommand ("envmap", R_Envmap_f);
537 scr_initialized = true;
540 // load the image data for the player image in the config menu
541 dat = (qpic_t *)COM_LoadFile ("gfx/menuplyr.lmp", false);
543 Sys_Error("unable to load gfx/menuplyr.lmp");
546 if (dat->width*dat->height <= 4096)
547 memcpy (menuplyr_pixels, dat->data, dat->width * dat->height);
549 Con_Printf("gfx/menuplyr.lmp larger than 4k buffer");
553 void DrawQ_Clear(void)
555 r_refdef.drawqueuesize = 0;
558 void DrawQ_Pic(float x, float y, char *picname, float width, float height, float red, float green, float blue, float alpha, int flags)
562 if (alpha < (1.0f / 255.0f))
564 size = sizeof(*dq) + ((strlen(picname) + 1 + 3) & ~3);
565 if (r_refdef.drawqueuesize + size > MAX_DRAWQUEUE)
567 red = bound(0, red, 1);
568 green = bound(0, green, 1);
569 blue = bound(0, blue, 1);
570 alpha = bound(0, alpha, 1);
571 dq = (void *)(r_refdef.drawqueue + r_refdef.drawqueuesize);
573 dq->command = DRAWQUEUE_PIC;
575 dq->color = ((unsigned int) (red * 255.0f) << 24) | ((unsigned int) (green * 255.0f) << 16) | ((unsigned int) (blue * 255.0f) << 8) | ((unsigned int) (alpha * 255.0f));
578 // if these are not zero, they override the pic's size
581 strcpy((char *)(dq + 1), picname);
582 r_refdef.drawqueuesize += dq->size;
585 void DrawQ_String(float x, float y, char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags)
590 if (alpha < (1.0f / 255.0f))
593 len = strlen(string);
595 for (len = 0;len < maxlen && string[len];len++);
596 for (;len > 0 && string[0] == ' ';string++, x += scalex, len--);
597 for (;len > 0 && string[len - 1] == ' ';len--);
600 if (x >= vid.conwidth || y >= vid.conheight || x < (-scalex * maxlen) || y < (-scaley))
602 size = sizeof(*dq) + ((len + 1 + 3) & ~3);
603 if (r_refdef.drawqueuesize + size > MAX_DRAWQUEUE)
605 red = bound(0, red, 1);
606 green = bound(0, green, 1);
607 blue = bound(0, blue, 1);
608 alpha = bound(0, alpha, 1);
609 dq = (void *)(r_refdef.drawqueue + r_refdef.drawqueuesize);
611 dq->command = DRAWQUEUE_STRING;
613 dq->color = ((unsigned int) (red * 255.0f) << 24) | ((unsigned int) (green * 255.0f) << 16) | ((unsigned int) (blue * 255.0f) << 8) | ((unsigned int) (alpha * 255.0f));
618 out = (char *)(dq + 1);
619 memcpy(out, string, len);
621 r_refdef.drawqueuesize += dq->size;
624 void DrawQ_Fill (float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags)
628 if (alpha < (1.0f / 255.0f))
630 size = sizeof(*dq) + 4;
631 if (r_refdef.drawqueuesize + size > MAX_DRAWQUEUE)
633 red = bound(0, red, 1);
634 green = bound(0, green, 1);
635 blue = bound(0, blue, 1);
636 alpha = bound(0, alpha, 1);
637 dq = (void *)(r_refdef.drawqueue + r_refdef.drawqueuesize);
639 dq->command = DRAWQUEUE_PIC;
641 dq->color = ((unsigned int) (red * 255.0f) << 24) | ((unsigned int) (green * 255.0f) << 16) | ((unsigned int) (blue * 255.0f) << 8) | ((unsigned int) (alpha * 255.0f));
647 *((char *)(dq + 1)) = 0;
648 r_refdef.drawqueuesize += dq->size;
651 //only used for the player color selection menu
652 void DrawQ_PicTranslate (int x, int y, char *picname, qbyte *translation)
655 unsigned int trans[4096];
658 pic = Draw_CachePic(picname);
662 c = pic->width * pic->height;
665 Con_Printf("DrawQ_PicTranslate: image larger than 4k buffer\n");
669 for (i = 0;i < c;i++)
670 trans[i] = d_8to24table[translation[menuplyr_pixels[i]]];
672 // FIXME: this is renderer stuff?
673 R_UpdateTexture (pic->tex, (qbyte *)trans);
675 DrawQ_Pic(x, y, picname, 0, 0, 1, 1, 1, 1, 0);
684 float CalcFov (float fov_x, float width, float height)
686 // calculate vision size and alter by aspect, then convert back to angle
687 return atan (height / (width / tan(fov_x/360*M_PI))) * 360 / M_PI;
694 Must be called whenever vid changes
698 static void SCR_CalcRefdef (void)
703 //========================================
706 if (scr_viewsize.value < 30)
707 Cvar_Set ("viewsize","30");
708 if (scr_viewsize.value > 120)
709 Cvar_Set ("viewsize","120");
711 // bound field of view
712 if (scr_fov.value < 10)
713 Cvar_Set ("fov","10");
714 if (scr_fov.value > 170)
715 Cvar_Set ("fov","170");
717 // intermission is always full screen
725 if (scr_viewsize.value >= 120)
726 sb_lines = 0; // no status bar at all
727 else if (scr_viewsize.value >= 110)
728 sb_lines = 24; // no inventory
731 size = scr_viewsize.value * (1.0 / 100.0);
736 r_refdef.width = vid.realwidth;
737 r_refdef.height = vid.realheight;
743 r_refdef.width = vid.realwidth * size;
744 r_refdef.height = vid.realheight * size;
745 r_refdef.x = (vid.realwidth - r_refdef.width)/2;
746 r_refdef.y = (vid.realheight - r_refdef.height)/2;
749 r_refdef.width = bound(0, r_refdef.width, vid.realwidth);
750 r_refdef.height = bound(0, r_refdef.height, vid.realheight);
751 r_refdef.x = bound(0, r_refdef.x, vid.realwidth - r_refdef.width) + vid.realx;
752 r_refdef.y = bound(0, r_refdef.y, vid.realheight - r_refdef.height) + vid.realy;
754 // LordHavoc: viewzoom (zoom in for sniper rifles, etc)
755 r_refdef.fov_x = scr_fov.value * cl.viewzoom;
756 r_refdef.fov_y = CalcFov (r_refdef.fov_x, r_refdef.width, r_refdef.height);
760 Mod_CheckLoaded(cl.worldmodel);
761 contents = Mod_PointInLeaf(r_refdef.vieworg, cl.worldmodel)->contents;
762 if (contents != CONTENTS_EMPTY && contents != CONTENTS_SOLID)
764 r_refdef.fov_x *= (sin(cl.time * 4.7) * 0.015 + 0.985);
765 r_refdef.fov_y *= (sin(cl.time * 3.0) * 0.015 + 0.985);
775 void SCR_ScreenShot_f (void)
779 char checkname[MAX_OSPATH];
781 // find a file name to save it to
783 strcpy(filename, "dp0000.tga");
785 for (i=0 ; i<=9999 ; i++)
787 filename[2] = (i/1000)%10 + '0';
788 filename[3] = (i/ 100)%10 + '0';
789 filename[4] = (i/ 10)%10 + '0';
790 filename[5] = (i/ 1)%10 + '0';
791 sprintf (checkname, "%s/%s", com_gamedir, filename);
792 if (Sys_FileTime(checkname) == -1)
793 break; // file doesn't exist
797 Con_Printf ("SCR_ScreenShot_f: Couldn't create a TGA file\n");
801 if (SCR_ScreenShot(filename, vid.realx, vid.realy, vid.realwidth, vid.realheight))
802 Con_Printf ("Wrote %s\n", filename);
804 Con_Printf ("unable to write %s\n", filename);
807 static int cl_avidemo_frame = 0;
809 void SCR_CaptureAVIDemo(void)
812 sprintf(filename, "dpavi%06d.tga", cl_avidemo_frame);
813 if (SCR_ScreenShot(filename, vid.realx, vid.realy, vid.realwidth, vid.realheight))
817 Cvar_SetValueQuick(&cl_avidemo, 0);
818 Con_Printf("avi saving failed on frame %i, out of disk space? stopping avi demo catpure.\n", cl_avidemo_frame);
819 cl_avidemo_frame = 0;
827 Grab six views for environment mapping tests
839 {{ 0, 180, 0}, "bk"},
840 {{ 0, 270, 0}, "lf"},
841 {{-90, 90, 0}, "up"},
845 static void R_Envmap_f (void)
848 char filename[256], basename[256];
852 Con_Printf ("envmap <basename> <size>: save out 6 cubic environment map images, usable with loadsky, note that size must one of 128, 256, 512, or 1024 and can't be bigger than your current resolution\n");
856 strcpy(basename, Cmd_Argv(1));
857 size = atoi(Cmd_Argv(2));
858 if (size != 128 && size != 256 && size != 512 && size != 1024)
860 Con_Printf("envmap: size must be one of 128, 256, 512, or 1024\n");
863 if (size > vid.realwidth || size > vid.realheight)
865 Con_Printf("envmap: your resolution is not big enough to render that size\n");
873 r_refdef.width = size;
874 r_refdef.height = size;
879 for (j = 0;j < 6;j++)
881 sprintf(filename, "env/%s%s.tga", basename, envmapinfo[j].name);
882 VectorCopy(envmapinfo[j].angles, r_refdef.viewangles);
885 SCR_ScreenShot(filename, vid.realx, vid.realy, size, size);
891 //=============================================================================
893 // LordHavoc: SHOWLMP stuff
894 #define SHOWLMP_MAXLABELS 256
895 typedef struct showlmp_s
905 showlmp_t showlmp[SHOWLMP_MAXLABELS];
907 void SHOWLMP_decodehide(void)
911 lmplabel = MSG_ReadString();
912 for (i = 0;i < SHOWLMP_MAXLABELS;i++)
913 if (showlmp[i].isactive && strcmp(showlmp[i].label, lmplabel) == 0)
915 showlmp[i].isactive = false;
920 void SHOWLMP_decodeshow(void)
923 qbyte lmplabel[256], picname[256];
925 strcpy(lmplabel,MSG_ReadString());
926 strcpy(picname, MSG_ReadString());
927 if (gamemode == GAME_NEHAHRA) // LordHavoc: nasty old legacy junk
938 for (i = 0;i < SHOWLMP_MAXLABELS;i++)
939 if (showlmp[i].isactive)
941 if (strcmp(showlmp[i].label, lmplabel) == 0)
944 break; // drop out to replace it
947 else if (k < 0) // find first empty one to replace
950 return; // none found to replace
951 // change existing one
952 showlmp[k].isactive = true;
953 strcpy(showlmp[k].label, lmplabel);
954 strcpy(showlmp[k].pic, picname);
959 void SHOWLMP_drawall(void)
963 for (i = 0;i < SHOWLMP_MAXLABELS;i++)
964 if (showlmp[i].isactive)
965 DrawQ_Pic(showlmp[i].x, showlmp[i].y, showlmp[i].pic, 0, 0, 1, 1, 1, 1, 0);
968 void SHOWLMP_clear(void)
971 for (i = 0;i < SHOWLMP_MAXLABELS;i++)
972 showlmp[i].isactive = false;
975 void CL_SetupScreenSize(void)
977 static float old2dresolution = -1;
979 VID_GetWindowSize (&vid.realx, &vid.realy, &vid.realwidth, &vid.realheight);
981 VID_UpdateGamma(false);
983 if (scr_2dresolution.value != old2dresolution)
985 Cvar_SetValue("scr_2dresolution", bound(0.0f, scr_2dresolution.value, 1.0f));
986 old2dresolution = scr_2dresolution.value;
989 if (vid.realwidth > 320)
991 vid.conwidth = (vid.realwidth - 320) * scr_2dresolution.value + 320;
992 vid.conwidth = bound(320, vid.conwidth, vid.realwidth);
997 if (vid.realheight > 240)
999 vid.conheight = (vid.realheight - 240) * scr_2dresolution.value + 240;
1000 vid.conheight = bound(240, vid.conheight, vid.realheight);
1003 vid.conheight = 240;
1005 SCR_SetUpToDrawConsole();
1007 // determine size of refresh window
1011 void CL_UpdateScreen(void)
1013 if (!scr_initialized || !con_initialized)
1014 return; // not initialized yet
1016 if (cl_avidemo.integer)
1017 SCR_CaptureAVIDemo();
1019 cl_avidemo_frame = 0;
1021 R_TimeReport("other");
1023 CL_SetupScreenSize();
1030 R_TimeReport("setup");
1036 SCR_CheckDrawCenterString();
1044 if (scr_drawloading)
1046 scr_drawloading = false;
1052 // add r_speeds text to queue
1055 // start a new timing run
1056 R_TimeReport_Start();
1058 // make menu fade everything else on the screen
1064 void CL_Screen_NewMap(void)