---
name: "SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH"
---

# SDL\_HINT\_MAC\_OPENGL\_ASYNC\_DISPATCH(3)

A variable controlling whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing on macOS.

## NAME

SDL\_HINT\_MAC\_OPENGL\_ASYNC\_DISPATCH - A variable controlling whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing on macOS.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_HINT\_MAC\_OPENGL\_ASYNC\_DISPATCH** *SDL\_MAC\_OPENGL\_ASYNC\_DISPATCH"*

## DESCRIPTION

The variable can be set to the following values:

• "0": Dispatching OpenGL context updates will block the dispatching thread\
   until the main thread finishes processing. (default)

• "1": Dispatching OpenGL context updates will allow the dispatching thread\
   to continue execution.

Generally you want the default, but if you have OpenGL code in a background thread on a Mac, and the main thread hangs because it's waiting for that background thread, but that background thread is also hanging because it's waiting for the main thread to do an update, this might fix your issue.

This hint can be set anytime.

## AVAILABILITY

This hint is available since SDL 3.2.0.
