Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question Vulkan Synchronization (Best practices & Pitfal

This topic is 689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


VULKAN gives the developer the possibility/responsibility to use synchronization primitivies.

Core questions
  • Is it right, that OpenGL is really totally hiding synchronization in the driver? If not, can someone give examples, where you also can use synchronization with OpenGL.
  • Is Synchronization just an annoying sideeffect of VULKAN's new driver architecture and API? If not, where does it really shine?
  • Are there common scenarios, where to use VULKAN's Synchronization primitives (Boilerplate code) and are there exotic scenarios, where one can really push the limits of his GPU?
  • Are there best practices like e.g. the reuse and grouping of Synchronization primitives? Are there common pitfalls when using synchronization?

Synchronization is really one of the worst documented features in the VULKAN specification and I would be glad, if you could shed some light onto this and provide code snippets, that support the understanding of concepts.

Since VULKAN is also relatively new, I would support and moderate this thread with the intention and hope, that it may become an structured overview/discussion providing answers to the above questions. I would appreciate it, if the overview prepares community knowledge, that goes beyond the current VULKAN synchronization tutorials.

Example Semaphores

When to use?

Typically for inter-queue synchronization.

Common application(s)

Synchronization of rendering and presentation engine/queues.

Best practives

Since there are bugs deleting semaphores and the creation of synchronization is often using a lot of ressources, I suggest to create as many semaphores as needed in the whole application and reuse them.


Create as many pairs of render/present semaphores as we have images in the swapchain.


Synchronization via Timeouts.

Edited by MarkusFra

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!