mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-08 06:01:58 +00:00
misc: Remove duplicate prefix in GPU information line in log
This commit is contained in:
parent
df91c4c57a
commit
d052d74ac4
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
using Gommon;
|
||||
using Ryujinx.Common.Configuration;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Graphics.GAL;
|
||||
|
@ -890,7 +891,12 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
private void PrintGpuInformation()
|
||||
{
|
||||
Logger.Notice.Print(LogClass.Gpu, $"{GpuVendor} {GpuRenderer} ({GpuVersion})");
|
||||
string gpuInfoMessage = $"{GpuRenderer} ({GpuVersion})";
|
||||
if (!GpuRenderer.StartsWithIgnoreCase(GpuVendor))
|
||||
gpuInfoMessage = gpuInfoMessage.Prepend(GpuVendor);
|
||||
|
||||
Logger.Notice.Print(LogClass.Gpu, gpuInfoMessage);
|
||||
|
||||
Logger.Notice.Print(LogClass.Gpu, $"GPU Memory: {GetTotalGPUMemory() / (1024 * 1024)} MiB");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue