Michael-Lfx / GPU_Tuning

MIT License
9 stars 0 forks source link

[Vulkan | Metal] Command Queue #15

Open Michael-Lfx opened 5 years ago

Michael-Lfx commented 5 years ago

多 Command Queue 的性能表现

比如为Present、Transfer创建各自的队列,在什么场景比单Command Queue性能更高?

Command Queue 优先级对性能的影响

QueueFamilyIndices indices = findQueueFamilies(physicalDevice);
float queuePriority = 1.0f;

VkDeviceQueueCreateInfo queueCreateInfo = {};
queueCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
queueCreateInfo.queueFamilyIndex = indices.graphicsFamily; 
queueCreateInfo.queueCount = 1;
queueCreateInfo.pQueuePriorities = &queuePriority;