Scroll to navigation

SDL_GetCPUCount(3) SDL3 FUNCTIONS SDL_GetCPUCount(3)

NAME

SDL_GetCPUCount - Get the number of CPU cores available.

SYNOPSIS

#include "SDL3/SDL.h"
int SDL_GetCPUCount(void);

RETURN VALUE

Returns the total number of logical CPU cores. On CPUs that include technologies such as hyperthreading, the number of logical cores may be more than the number of physical cores.

AVAILABILITY

This function is available since SDL 3.0.0.

SDL 3.1.0 SDL