mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 06:33:49 +00:00
added comments
This commit is contained in:
parent
cb47c2849c
commit
4a0c4a69f0
1 changed files with 6 additions and 4 deletions
|
|
@ -19,7 +19,10 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
// XXTH used for FreeBSD, SDL_cpuinfo dont tell me the cpu name
|
||||
// XXTH used for FreeBSD
|
||||
// Note: SDL_cpuinfo have not all information, but better than using
|
||||
// "sysctl hw"
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
#if defined( __FreeBSD__ )
|
||||
#include "SDL.h"
|
||||
|
|
@ -35,13 +38,12 @@ Platform::SystemInfo_struct Platform::SystemInfo;
|
|||
void Processor::init()
|
||||
{
|
||||
|
||||
//sdl dont have logical/physical CPU count so ... time to guess
|
||||
//modern CPU usually should have isHyperThreaded
|
||||
S32 lCpuCount = SDL_GetCPUCount();
|
||||
Platform::SystemInfo.processor.numLogicalProcessors = lCpuCount;
|
||||
//sdl dont have logical/physical CPU count so ... time to guess
|
||||
Platform::SystemInfo.processor.numPhysicalProcessors = 1; // :/ lCpuCount;
|
||||
Platform::SystemInfo.processor.isMultiCore = lCpuCount > 1;
|
||||
//since logical and physical is equal set to false mhh better true
|
||||
//modern CPU should have isHyperThreaded
|
||||
Platform::SystemInfo.processor.isHyperThreaded = true;
|
||||
|
||||
//hackfest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue