mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 01:54:31 +00:00
* video info: add frame graph Toggle advanced info with CTRL+F10. Also fixed imgui using gamepad for nav in wrong situations * 60fps! Implemented a timer that accumulates the time spent sleeping and sleeps for the remaining time. Also measure entire PresentThread time instead of just the time spent in Flip. * sceKernelGettimeofday: replace chrono by win32 api. Better performance bb uses this function too much. Consuming almost 30% of cpu time
23 lines
456 B
C++
23 lines
456 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "imgui/imgui_layer.h"
|
|
|
|
namespace Vulkan {
|
|
class RendererVulkan;
|
|
}
|
|
namespace ImGui::Layers {
|
|
|
|
class VideoInfo : public Layer {
|
|
::Vulkan::RendererVulkan* renderer{};
|
|
|
|
public:
|
|
explicit VideoInfo(::Vulkan::RendererVulkan* renderer) : renderer(renderer) {}
|
|
|
|
void Draw() override;
|
|
};
|
|
|
|
} // namespace ImGui::Layers
|