Until yesterday, when initializing an OpenGL application, I was ok with functions such as SetPixelFormat() / DescribePixelFormat() / ChoosePixelFormat() taking about 1 second before returning, the first time one of these was called in my application. No problem, that was something that was done once during the initialization and that was fine.
Then yesterday I bought and downloaded a debugging software (remedybg debugger) and saw that the application loads instantly. I open remedybg and I instantly see the nice hardware rasterized ImGui interface with no delay at all.
I was wondering if anyone knows of some reason why those functions (SetPixelFormat, etc) could take longer under some circumstances. I have been playing with some compilation flags, I have been also trying to change some window class and window creation flags, all without success. I know maybe for many people 1 second delay is not of much concern in this situation, but now that I know that instant application initialization and context creation is possible I cannot ignore the fact that things can be done better!!!
I have seen other topics with similar title to this one, explaining that it was probably an issue related to the driver implementation, or a virus issue, or something regarding windows making some operations while the applicationm runs, firewall, etc. Given the fact that I have another application working the way I would expect, I think these cannot be the causes of that problem. As a last remark I’ve checked the dll dependencies of remedybg and seen that it is using dx11 instead of OpenGL. Does anybody know if there is a noticeable diference in this initialization issue when it comes to using OpenGL or DX?
Summarizing, if anyone knows about this and can cast some light on the fact that SetPixelFormat() and these functions are so slow I would greatly appreciate it.