I am trying to develop a widget that displays a large number of points greater than 100,000 points using PlotScatter or PlotLine. During the development, I used two monitors. My laptop screen and external monitor.
So the program worked fine when I used the external screen as my main screen. It displayed the plot nicely and the program is working fine. However, when I switched my main screen to the laptop screen. A warning message showed up in the ImPlot::ShowDemoWindow(). (WARNING: ImDrawIdx is 16-bit and ImGuiBackendFlags_RendererHasVtxOffset is false. Expect visual glitches and artifacts! See README for more information.).
So, I did some research and find that I could use ImGuiBackendFlags_RendererHasVtxOffset flag to solve the issue. The program was able to load the data but with some glitches. So my question is what is exactly causing the problem and I would like to have some support.
The plot when using my monitor as my main screen and ImGuiBackendFlags_RendereHasVtxOffset is 0.
The plot when using my laptop screen and ImGuiBackendFlags_RenderHasVtxOffset is 1 because when it is set to 0 the program won't work.
However, when I zoom in on the previous screenshot it seems to be working fine.
I am trying to develop a widget that displays a large number of points greater than 100,000 points using PlotScatter or PlotLine. During the development, I used two monitors. My laptop screen and external monitor.
So the program worked fine when I used the external screen as my main screen. It displayed the plot nicely and the program is working fine. However, when I switched my main screen to the laptop screen. A warning message showed up in the ImPlot::ShowDemoWindow(). (WARNING: ImDrawIdx is 16-bit and ImGuiBackendFlags_RendererHasVtxOffset is false. Expect visual glitches and artifacts! See README for more information.).
So, I did some research and find that I could use ImGuiBackendFlags_RendererHasVtxOffset flag to solve the issue. The program was able to load the data but with some glitches. So my question is what is exactly causing the problem and I would like to have some support.
The plot when using my monitor as my main screen and ImGuiBackendFlags_RendereHasVtxOffset is 0.
The plot when using my laptop screen and ImGuiBackendFlags_RenderHasVtxOffset is 1 because when it is set to 0 the program won't work.
However, when I zoom in on the previous screenshot it seems to be working fine.
I am using ImGui 1.84.2
My main file is as follow