Fix GPU time display in lobby
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include "utils/contains.h"
|
||||
#include "wivrn_client.h"
|
||||
#include "xr/passthrough.h"
|
||||
#include <chrono>
|
||||
#include <glm/gtc/matrix_access.hpp>
|
||||
|
||||
#include "wivrn_discover.h"
|
||||
@@ -52,8 +51,6 @@
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
static const std::string discover_service = "_wivrn._tcp.local.";
|
||||
static bool force_autoconnect = false;
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <future>
|
||||
|
||||
#include "render/scene_renderer.h"
|
||||
#include "render/imgui_impl.h"
|
||||
|
||||
@@ -419,7 +419,7 @@ void scenes::lobby::gui_settings()
|
||||
|
||||
|
||||
cpu_time[offset] = application::get_cpu_time().count() * 1.0e-6;
|
||||
gpu_time[offset] = application::get_gpu_time().count() * 1.0e-6;
|
||||
gpu_time[offset] = renderer->get_gpu_time() * 1'000;
|
||||
offset = (offset + 1) % cpu_time.size();
|
||||
|
||||
ImPlot::PushStyleColor(ImPlotCol_PlotBg, IM_COL32(32, 32, 32, 64));
|
||||
|
||||
Reference in New Issue
Block a user