Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.76 KB | None | 0 0
  1. void R_DrawGfxHud()
  2. {
  3.     int time;
  4. ...
  5.     time = Sys_Milliseconds();
  6.     if (time - gfxHud_timeStamp >= 1000)    // снятие показаний 1 раз в секунду, чаще нет смысла
  7.     {
  8.         GLimp_NvApi_GetAllData(gfxHud_currGPU, &gfxHud_temp[gfxHud_currPos], &gfxHud_fan[gfxHud_currPos], &gfxHud_gpuUtil[gfxHud_currPos], &gfxHud_busUtil[gfxHud_currPos]);
  9.         GLimp_GetCpuUtilization(&gfxHud_cpuUtil[gfxHud_currPos]);    //// ВотЪ !!!  ;)
  10.     }
  11. ...
  12. // отображение...  всякую вату вырежешь
  13.     if (gfxHud_cpuUtil[currPos] != INT_MAX && (r_gfxHud_metricBits->integer & GFXHUD_CPU_BIT))
  14.     {
  15.         R_Printf(0, row, false, "CPU utilization (current process): %u %% (Max %u)", gfxHud_cpuUtil[currPos], limitCPU);
  16.         row -= (int)fheight;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement