# First buffer swap takes 20 seconds

**URL:** <https://discourse.glfw.org/t/first-buffer-swap-takes-20-seconds/1793>\
**Category:** support\
**Created:** [March 16, 2021, 8:22am UTC](https://discourse.glfw.org/t/first-buffer-swap-takes-20-seconds/1793 "2021-03-16T08:22:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prokoprandacek](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@prokoprandacek](https://discourse.glfw.org/u/prokoprandacek)\
**Post date:** [March 16, 2021, 8:22am UTC](https://discourse.glfw.org/t/first-buffer-swap-takes-20-seconds/1793/1 "2021-03-16T08:22:31Z")

</div>

My first glfwSwapBuffers after glfw init takes 20 seconds.  
Is this normal? Does anybody know what is causing this?  
Any next buffer swap takes \<1 ms.

source code:

> <https://github.com/ProkopRandacek/rendering/blob/main/src/opengl.c#L98>

I’m not sure what other info I should provide.
