Game Development Community

Mac Hardware ID function -- request for comments

by Sean OBrien · in Torque 3D Professional · 07/31/2009 (1:38 pm) · 2 replies

The Mac version of the processor and system identification calls were re-written and I am attempting to make sure that they are "nailed down" since my changes got added to the official T3D codebase.

Although this code is being sync'd with the official build, I would appreciate any feedback on erroneous results directly so I can look at them instead of just waiting for the next beta, etc. I'm obviously not trying to replace the great GG team ... just helping them out with even a small piece such as this.

The resource is here: www.garagegames.com/community/resources/view/17985 and it only involves the alteration of one single file "macCarbCPUInfo.cpp" The easiest thing to do is simply replace the entire file as there were a half-dozen minor changes made to the Beta 4 version.

Specific things to watch:
(1) Is the routine properly determining the amount of RAM in the system? It reports two values, one is system RAM and the other is the user space avail.

(2) Is the routine properly determining the machine clock speed? I botched this the first time around (blah) so just ensure it's what the OS reports.

(3) Is the routine properly identifying the processor? There were issues with "unknown" values being reported by the kernel previously. This version should specify the family of the core used in the processor (e.g. Nehalem, Penryn, etc)

(4) The routine was altered to dump the detected optional modes to the console log as it runs along with some minor formatting changes.

And ... well yeah anything else that jumps out at anyone!

Cheers!

Sean.

#1
08/01/2009 (3:49 pm)
Sean

I will run this against my test machine here and report the results.

Just to confirm the changes in "macCarbCPUInfo.cpp" from the previous effort supersede the Beta 4 changes ?
#2
08/01/2009 (4:04 pm)
Andrew:

The timeline for this code runs like this:
1) Beta 4 -- still had issues with large memory computers and ID'ing the newest Intel processors
2) Updated version in the (now defunct) thread in TGEA 1.8 forums -- fixes memory, clock speed, CPU
3) Rene syncs those updates into the T3D code-base
4) I find a few more small issues and make some formating changes to the output and that's where we are now

As I was submitting this most recent set of changes, I ran into a post-length issue with the forum thread so I simply moved it to a code resource and posted this thread to point to it in case there are any Torque3D specific issues which we can discuss here instead of the "general" resource comments area.

I will continue to update the Resource version as we find issues and get them ironed out. I can keep track of specific "version" iteration changes if that is of any interest but this isn't really a mission critical set of functions so I have been running with the idea that whatever is posted is "the version" and the older ones are rather pointless.

Honestly I think it's almost feature-complete but I wanted to get a few people to try it on a wider variety of machines than my iMac and my MacBook. =)

Thanks for checking it out. Looking forward to your results.