Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgui boxes disappearing or flickering when clicking on them #14

Open
adamdeere opened this issue Feb 24, 2021 · 14 comments
Open

imgui boxes disappearing or flickering when clicking on them #14

adamdeere opened this issue Feb 24, 2021 · 14 comments

Comments

@adamdeere
Copy link

as in the description, when clicking on the boxes they seem to disappear. or flicker. or both. or the text goes blurry. theres no way of telling what is actually going on with openTK

@NogginBops
Copy link
Owner

Hi!
Can you please include a screenshot of what you are seeing?

It would also be great to know more about what code you are running:

  • What branch of this repo are you using?
  • What version of opentk are you using?
  • What GPU and driver are you using?

If possible it would be great if you where you share the code that you use for rendering outside the code included in this repo (if any).

@adamdeere
Copy link
Author

adamdeere commented Feb 25, 2021 via email

@NogginBops
Copy link
Owner

That's a weird issue.
Are there any printouts to the console?

If you can I would appreciate if you could create a RenderDoc capture with two captures, one with the window showing and one with the window when it has disappeared.

You basically open the .exe file in RenderDoc and use F12 to take a capture. So if you could do that and upload it here I can probably diagnose this issue.
Here is more info on how to make a capture:
https://renderdoc.org/docs/how/how_capture_frame.html

@adamdeere
Copy link
Author

adamdeere commented Feb 25, 2021 via email

@NogginBops
Copy link
Owner

I would still appreciate a renderdoc capture as it might be able to tell me something about the issue.
If you could send me a capture taken with these settings I would greatly appreciate it.
image

@adamdeere
Copy link
Author

adamdeere commented Feb 26, 2021 via email

@NogginBops
Copy link
Owner

No worries.

The no vertex shader error sounds suspicious. If you could send me that capture I could take a look. I'm pretty confident it will help me find the error.

@adamdeere
Copy link
Author

adamdeere commented Feb 26, 2021 via email

@adamdeere
Copy link
Author

adamdeere commented Feb 26, 2021 via email

@BarisUckardes
Copy link

Suffering from this issue too, no solution yet ?

@BarisUckardes
Copy link

Here's my scenario, at first everything looks good.No flickering no disappearing.When i my mouse overlays an dropbox icon it starts to flicker.

+This is the screenshot before i hover my mouse onto dropbox of the ImGui.Begin() window.
image

+This is the screenshot after i hovered my mouse onto dropbox of the ImGui.Begin() window
image

if you look at the top left corner of the second screenshot you can see some triangle deforming thing(y).

Further details->

+I do not use GameWindow's own Update,Render overrides.Im annoyed by the idea of a window controls all my game loop so i abstracted my Window class, thus it means i dont use the value of FrameEventArgs.time to update ImGuiController.The custom delta time value is currently fixed to 1f/60f even though my engine editor gets 900fps(1f/900f). BUT i downloaded your opengl 4.0 branch and still having the same issue so it means it has nothing to do with my custom input time.

+Downloaded opengl 3.3 sample code of yours and it works out of the box as intended.

I will try to find out what's different in opengl 3.3 demo and work from there and i plan to update my journey here if thats okey ?

@BarisUckardes
Copy link

I managed to solve this issue on my side.

What i did is simply copying all method bodies in opengl 3.3 ImGuiController,Shader,Texture and Util classes to opengl 4.0's ImGuiController,Shader,Texture and Util method bodies.

However i excluded the SetKeyMappings because it seems OpenTK.Input uses whole new kind of enums for the Key so SetKeyMappings method body is still opengl 4.0.

Conclusion->

Now i can fully use ImGui.Net with OpenTK without a problem (so far).
It seems problem caused byGL.NamedBufferData() and i dont intend to dwell on this matter because extra performance gain from GL.NamedBufferData is actually is trivial when it comes to UI,Editor and etc

@HopingCoding
Copy link

I have exactly the same issue as described here.
However I can isolate it to happen only on the integrated Intel HD 530 GPU of my laptop. If I switch to the dedicated Nvidia GPU on the same laptop, there is no flickering whatsoever.

@NogginBops
Copy link
Owner

NogginBops commented Apr 15, 2021

Yeah this is related to using glNamedBufferData on some intel cards. I've not looked much further into it as the opengl 3.3 branch fixes this issue.
At some point I can look into why it's not working further, the solution is likely to stop using glNamedBufferData and just bind buffers and use glBufferData, but I would like to avoid that if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants