Added FPS counter

Also removed multi window support
This commit is contained in:
Pasha Bibko
2025-11-16 21:19:17 +00:00
parent 4c1226f658
commit 5dc0974d50
3 changed files with 58 additions and 34 deletions

View File

@@ -21,11 +21,8 @@ int main()
{
using namespace PB::Renderer; // Project namespace
/* Initializes GLFW and creates window */
if (!GLFWManager::Init())
return -1;
GLFWwindow* window = GLFWManager::CreateWindow(800, 600, "Vulkan window");
/* Initializes GLFW and creates a window */
GLFWwindow* window = GLFWManager::Init(800, 600, "Vulkan window");
if (!window)
return -1;
@@ -37,6 +34,7 @@ int main()
while (!glfwWindowShouldClose(window))
{
glfwPollEvents();
GLFWManager::UpdateWindowTitleFPSInfo();
if (!VulkanManager::RenderPass())
CleanupAllAndExit(EXIT_FAILURE);