32 lines
624 B
C++
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;
|
|
};
|
|
}
|