Don't update RAM/IO stats if not enabled
@@ -920,7 +920,9 @@ void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& pa
}
// get ram usage/max
+ if (params.enabled[OVERLAY_PARAM_ENABLED_ram])
pthread_create(&memoryThread, NULL, &update_meminfo, NULL);
+ if (params.enabled[OVERLAY_PARAM_ENABLED_io_read] || params.enabled[OVERLAY_PARAM_ENABLED_io_write])
pthread_create(&ioThread, NULL, &getIoStats, &sw_stats.io);
gpuLoadLog = gpu_info.load;
