|
Size: 953
Comment: Fixed typo.
|
← Revision 10 as of 2016-11-28 21:40:11 ⇥
Size: 952
Comment: Changed printf() to SDL_Log() in example.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 18: | Line 18: |
| printf("Number of logical CPU cores: %d\n", SDL_GetCPUCount()); | SDL_Log("Number of logical CPU cores: %d", SDL_GetCPUCount()); |
SDL_GetCPUCount
Use this function to get the number of CPU cores available.
Syntax
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.
Code Examples
SDL_Log("Number of logical CPU cores: %d", SDL_GetCPUCount());
Remarks
You can add useful comments here
Version
This function is available since SDL 2.0.0.
