More logging cleanup stuff

This commit is contained in:
n00mkrad
2025-12-20 23:22:41 +01:00
parent 185b7023c5
commit 6e809734e8
2 changed files with 3 additions and 8 deletions

View File

@@ -29,13 +29,13 @@ namespace Flowframes.Os
{
float vramGb = gpu.GetVramGb();
vramGb = (float)(Math.Round(vramGb * 2, MidpointRounding.AwayFromZero) / 2); // Round to nearest 0.5 GB
Logger.Log($"[NvAPI] Nvidia GPU: {gpu.FullName} ({vramGb.ToString("0.#")} GB) {GetArch(gpu)} Architecture", true);
Logger.Log($"[NvAPI] Nvidia GPU: {gpu.FullName}, {vramGb.ToString("0.#")} GB, {GetArch(gpu)} Architecture", true);
GpuVram[gpu] = vramGb;
}
NvGpus = gpus.OrderByDescending(g => GpuVram[g]).ThenBy(g => g.FullName).ToList();
string mostVramGpu = gpus.Length > 1 ? $" Most VRAM: {GpuWithMostVram.FullName} ({GpuVram[GpuWithMostVram].ToString("0.#")} GB)" : "";
Logger.Log($"[NvAPI] Initialized Nvidia API in {sw.ElapsedMs} ms. GPU{(gpus.Length > 1 ? "s" : "")}: {string.Join(", ", gpus.Select(g => g.FullName))}.{mostVramGpu}", true);
Logger.Log($"[NvAPI] Initialized Nvidia API in {sw.ElapsedMs} ms - GPU{(gpus.Length > 1 ? "s" : "")}: {string.Join(", ", gpus.Select(g => g.FullName))}{mostVramGpu}", true);
}
catch (Exception e)
{

View File

@@ -52,7 +52,7 @@ namespace Flowframes.Os
// Clean up Vulkan resources
vkInstance.Destroy();
Logger.Log($"[VK] Vulkan device check completed after {sw.ElapsedMs} ms", true);
Logger.Log($"[VK] Vulkan device check completed in {sw.ElapsedMs} ms", true);
}
catch(Exception ex)
{
@@ -80,10 +80,5 @@ namespace Flowframes.Os
return 0;
}
public static int GetMaxNcnnThreads(VkDevice device)
{
return device.ComputeQueueCount;
}
}
}