mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 09:03:51 +00:00
feat: log GPU vendor/name at init, add PLAY_SOUND diagnostics
Log GPU name and vendor ID during VkContext initialization for easier debugging of GPU-specific issues (FSR3, driver compat, etc.). Add isAmdGpu()/isNvidiaGpu() accessors. Temporarily log SMSG_PLAY_SOUND and SMSG_PLAY_OBJECT_SOUND at WARN level (sound ID, name, file path) to diagnose unidentified ambient NPC sounds reported by the user.
This commit is contained in:
parent
c8c01f8ac0
commit
d2a396df11
3 changed files with 16 additions and 0 deletions
|
|
@ -196,6 +196,10 @@ bool VkContext::selectPhysicalDevice() {
|
|||
VkPhysicalDeviceProperties props;
|
||||
vkGetPhysicalDeviceProperties(physicalDevice, &props);
|
||||
uint32_t apiVersion = props.apiVersion;
|
||||
gpuVendorId_ = props.vendorID;
|
||||
std::strncpy(gpuName_, props.deviceName, sizeof(gpuName_) - 1);
|
||||
gpuName_[sizeof(gpuName_) - 1] = '\0';
|
||||
LOG_INFO("GPU: ", gpuName_, " (vendor 0x", std::hex, gpuVendorId_, std::dec, ")");
|
||||
|
||||
VkPhysicalDeviceDepthStencilResolveProperties dsResolveProps{};
|
||||
dsResolveProps.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue