Add a trivial profiling tool to the OpenGL backend - meaasure the time it takes to run a frame of commands.

Accessed from the in-game dev menu just like the Vulkan frame profiler.

With this we can easily see that actually submitting the GL commands is often the bottleneck on old
devices like a Galaxy S3.
This commit is contained in:
Henrik Rydgård committed 2023-05-17 14:38:11 +02:00
1 parent 552746e2df
commit 05b6bbdc56
11 files changed
+60 -7

No files matched your search

+1 -1
View File
@@ -1616,7 +1616,7 @@ void EmuScreen::renderUI() {
DrawAllocatorVis(ctx, gpu);
}
if (g_Config.iGPUBackend == (int)GPUBackend::VULKAN && g_Config.bShowGpuProfile) {
if ((g_Config.iGPUBackend == (int)GPUBackend::VULKAN || g_Config.iGPUBackend == (int)GPUBackend::OPENGL) && g_Config.bShowGpuProfile) {
DrawGPUProfilerVis(ctx, gpu);
}