Add FPS counter
Added console FPS counter. Thise required me to create some time functions and remove FPS cap from Vulkan Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
This commit is contained in:
@@ -52,7 +52,7 @@ static rse_err_t create_swapchain(struct graphics_context_t* context)
|
||||
create_info.pQueueFamilyIndices = context->queue_family_indices;
|
||||
create_info.preTransform = physical_device_surface_capabilities.currentTransform;
|
||||
create_info.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
|
||||
create_info.presentMode = VK_PRESENT_MODE_FIFO_KHR;
|
||||
create_info.presentMode = VK_PRESENT_MODE_IMMEDIATE_KHR;
|
||||
create_info.clipped = VK_TRUE;
|
||||
create_info.oldSwapchain = VK_NULL_HANDLE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user