Files
OpenVulkano/openVulkanoCpp/Scene/UI/PerformanceOverlayUiElement.hpp
2024-06-11 14:03:13 +03:00

32 lines
624 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "Scene/Ui/Ui.hpp"
#include <deque>
namespace OpenVulkano::Scene::UI
{
class PerformanceOverlayUiElement : public Ui
{
int m_frameCount = 200;
std::deque<float> m_frameTimes;
int m_ramUsageCount = 200;
std::deque<float> m_ramUsed;
void UpdateQueues();
protected:
void Init() override;
void BeginDraw() override;
void Draw() override;
void EndDraw() override;
};
}