You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a performance issue when using ImGui with OpenGL on Windows. Specifically, when rendering multiple windows, the frame rate drops significantly in OpenGL mode. However, the same setup works perfectly fine with DirectX 11, and the frame rate remains stable.
Here’s a summary of the problem:
Frame rate drops noticeably when multiple ImGui windows are rendered in OpenGL.
Switching to DirectX 11 solves the issue, even with the same number of windows and content.
I am using the latest version of ImGui and my GPU drivers are up to date.
Could this be a bug in ImGui’s OpenGL implementation, or might it be related to OpenGL context handling or resource management? Is there any recommended way to optimize OpenGL performance in this scenario?
Any advice or insights would be greatly appreciated.
Version/Branch of Dear ImGui:
Version 1.91.X, Branch: master
Back-ends:
imgui_impl_glfw.h.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Win11 + MSVC2022
Full config/build information:
No response
Details:
Hi everyone,
I encountered a performance issue when using ImGui with OpenGL on Windows. Specifically, when rendering multiple windows, the frame rate drops significantly in OpenGL mode. However, the same setup works perfectly fine with DirectX 11, and the frame rate remains stable.
Here’s a summary of the problem:
Frame rate drops noticeably when multiple ImGui windows are rendered in OpenGL.
Switching to DirectX 11 solves the issue, even with the same number of windows and content.
I am using the latest version of ImGui and my GPU drivers are up to date.
Could this be a bug in ImGui’s OpenGL implementation, or might it be related to OpenGL context handling or resource management? Is there any recommended way to optimize OpenGL performance in this scenario?
Any advice or insights would be greatly appreciated.
Thank you!
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
#include "imguiwidget.h"
ImGuiWidget::ImGuiWidget(QWidget *parent) : QOpenGLWidget(parent)
{
}
ImGuiWidget::~ImGuiWidget()
{
}
void ImGuiWidget::initializeGL() {
initializeOpenGLFunctions();
ref = QtImGui::initialize(this, false);
}
void ImGuiWidget::paintGL() {
QtImGui::newFrame(ref);
auto& io = ImGui::GetIO();
static bool use_work_area = false;
}
ImGuiWindowFlags ImGuiWidget::defaultWindowFlags() {
return ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings;
}
The text was updated successfully, but these errors were encountered: