diff --git a/framework/core/device.h b/framework/core/device.h index 3b0a56d77..048cc69a8 100644 --- a/framework/core/device.h +++ b/framework/core/device.h @@ -634,7 +634,7 @@ inline void Device::init(std::unordered_map con if (gpu.has_high_priority_graphics_queue() && (vkb::common::get_queue_family_index(queue_family_properties, vk::QueueFlagBits::eGraphics) == queue_family_index)) { - queue_priorities.back()[0] = 1.0f; + queue_priorities.back()[0] = 0.5f; } queue_create_infos.push_back({.queueFamilyIndex = queue_family_index, diff --git a/samples/api/hello_triangle/hello_triangle.cpp b/samples/api/hello_triangle/hello_triangle.cpp index 75e1d1839..5fd11929c 100644 --- a/samples/api/hello_triangle/hello_triangle.cpp +++ b/samples/api/hello_triangle/hello_triangle.cpp @@ -302,7 +302,7 @@ void HelloTriangle::init_device() #endif // The sample uses a single graphics queue - const float queue_priority = 1.0f; + const float queue_priority = 0.5f; VkDeviceQueueCreateInfo queue_info{ .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, diff --git a/samples/api/hello_triangle_1_3/hello_triangle_1_3.cpp b/samples/api/hello_triangle_1_3/hello_triangle_1_3.cpp index 84d37f3d3..bbfa0579b 100644 --- a/samples/api/hello_triangle_1_3/hello_triangle_1_3.cpp +++ b/samples/api/hello_triangle_1_3/hello_triangle_1_3.cpp @@ -360,7 +360,7 @@ void HelloTriangleV13::init_device() .pNext = &enable_vulkan13_features}; // Create the logical device - float queue_priority = 1.0f; + float queue_priority = 0.5f; // Create one queue VkDeviceQueueCreateInfo queue_info{ diff --git a/samples/api/hpp_hello_triangle/hpp_hello_triangle.cpp b/samples/api/hpp_hello_triangle/hpp_hello_triangle.cpp index b1727a372..800e2dd2d 100644 --- a/samples/api/hpp_hello_triangle/hpp_hello_triangle.cpp +++ b/samples/api/hpp_hello_triangle/hpp_hello_triangle.cpp @@ -334,7 +334,7 @@ vk::Device HPPHelloTriangle::create_device(const std::vector &requ #endif // Create a device with one queue - float queue_priority = 1.0f; + float queue_priority = 0.5f; vk::DeviceQueueCreateInfo queue_info{.queueFamilyIndex = graphics_queue_index, .queueCount = 1, .pQueuePriorities = &queue_priority}; vk::DeviceCreateInfo device_info{.queueCreateInfoCount = 1, .pQueueCreateInfos = &queue_info, diff --git a/samples/api/hpp_hello_triangle_1_3/hpp_hello_triangle_1_3.cpp b/samples/api/hpp_hello_triangle_1_3/hpp_hello_triangle_1_3.cpp index e54a304ce..415dc1cc5 100644 --- a/samples/api/hpp_hello_triangle_1_3/hpp_hello_triangle_1_3.cpp +++ b/samples/api/hpp_hello_triangle_1_3/hpp_hello_triangle_1_3.cpp @@ -419,7 +419,7 @@ void HPPHelloTriangleV13::init_device() enabled_features_chain = {{}, {.synchronization2 = true, .dynamicRendering = true}, {.extendedDynamicState = true}}; // Create the logical device - float queue_priority = 1.0f; + float queue_priority = 0.5f; // Create one queue vk::DeviceQueueCreateInfo queue_info{.queueFamilyIndex = static_cast(context.graphics_queue_index), diff --git a/samples/extensions/full_screen_exclusive/full_screen_exclusive.cpp b/samples/extensions/full_screen_exclusive/full_screen_exclusive.cpp index b11a75ecf..4e93de8b8 100644 --- a/samples/extensions/full_screen_exclusive/full_screen_exclusive.cpp +++ b/samples/extensions/full_screen_exclusive/full_screen_exclusive.cpp @@ -220,7 +220,7 @@ void FullScreenExclusive::init_device(const std::vector &required_ throw std::runtime_error("Required device extensions are missing, will try without."); } - float queue_priority = 1.0f; + float queue_priority = 0.5f; VkDeviceQueueCreateInfo queue_info{VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO}; queue_info.queueFamilyIndex = context.graphics_queue_index; diff --git a/samples/tooling/profiles/profiles.cpp b/samples/tooling/profiles/profiles.cpp index 040df2096..39a38941e 100644 --- a/samples/tooling/profiles/profiles.cpp +++ b/samples/tooling/profiles/profiles.cpp @@ -74,7 +74,7 @@ std::unique_ptr Profiles::create_device(vkb::core::PhysicalD // Simplified queue setup (only graphics) uint32_t selected_queue_family = 0; const auto &queue_family_properties = gpu.get_queue_family_properties(); - const float default_queue_priority{0.0f}; + const float default_queue_priority{0.5f}; VkDeviceQueueCreateInfo queue_create_info{}; queue_create_info.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; queue_create_info.queueCount = 1;