Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void R_DrawGfxHud()
- {
- int time;
- ...
- time = Sys_Milliseconds();
- if (time - gfxHud_timeStamp >= 1000) // снятие показаний 1 раз в секунду, чаще нет смысла
- {
- GLimp_NvApi_GetAllData(gfxHud_currGPU, &gfxHud_temp[gfxHud_currPos], &gfxHud_fan[gfxHud_currPos], &gfxHud_gpuUtil[gfxHud_currPos], &gfxHud_busUtil[gfxHud_currPos]);
- GLimp_GetCpuUtilization(&gfxHud_cpuUtil[gfxHud_currPos]); //// ВотЪ !!! ;)
- }
- ...
- // отображение... всякую вату вырежешь
- if (gfxHud_cpuUtil[currPos] != INT_MAX && (r_gfxHud_metricBits->integer & GFXHUD_CPU_BIT))
- {
- R_Printf(0, row, false, "CPU utilization (current process): %u %% (Max %u)", gfxHud_cpuUtil[currPos], limitCPU);
- row -= (int)fheight;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement