mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 02:46:08 +08:00
cpuinfo: Rename SDL_GetCPUCount to SDL_GetNumLogicalCPUCores
This was the only API that broke the "GetNumThings" convention used elsewhere, so renaming it helps with consistency. Adding "logical cores" to the name also makes it a bit more immediately obvious what the count actually represents.
This commit is contained in:
committed by
Sam Lantinga
parent
93bf534268
commit
1f3fd65c4c
+1
-1
@@ -476,7 +476,7 @@ static AVCodecContext *OpenVideoStream(AVFormatContext *ic, int stream, const AV
|
||||
context->strict_std_compliance = -2;
|
||||
|
||||
/* Enable threaded decoding, VVC decode is slow */
|
||||
context->thread_count = SDL_GetCPUCount();
|
||||
context->thread_count = SDL_GetNumLogicalCPUCores();
|
||||
context->thread_type = (FF_THREAD_FRAME | FF_THREAD_SLICE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user