bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.05k stars 1.94k forks source link

Avoid extra 3 flip/presents during initialization #3257

Closed longpractice closed 8 months ago

longpractice commented 8 months ago

It seems that the flip and is called three times during initialization, even though we have not yet done any rendering yet. We are trying to optimize our startup time and due to frame rates with vsync, these 3 frames with presents are quite a lot for us.

This sounds like a simple change, it does not feel very elegant though. I wonder what you think?