Select the types of activity you want to include in your feed.
Retry SDL video init with offscreen on macOS
Ensure SDL's event/semaphore machinery remains functional on headless macOS systems; without this fallback the cooperative scheduler can spin at 100% CPU
···252252#endif
253253254254#ifndef __WIN32 /* Fails on Windows */
255255- SDL_InitSubSystem(SDL_INIT_VIDEO);
255255+ if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) {
256256+#ifdef __APPLE__
257257+ /* Video init failed (likely headless — no display available on this Mac).
258258+ * Retry with the offscreen driver so SDL's internal event/semaphore
259259+ * machinery stays fully functional; without it the cooperative scheduler
260260+ * spins at 100% CPU instead of sleeping. */
261261+ SDL_setenv("SDL_VIDEODRIVER", "offscreen", 1);
262262+ SDL_InitSubSystem(SDL_INIT_VIDEO);
263263+#endif
264264+ }
256265257266#if SDL_MAJOR_VERSION > 1
258267 sdl_window_setup();