Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

how to detect and classify cpu type

This topic is 6966 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey, i'd like to expound on this querry...

is there a way in general to detect processor speed?

this would perhaps make it where you could automatically alter detail levels in a game so it would run smoothly on any processor..

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
if i want to classify k6-2 from 386 486 pentium pII P!!! and etc how must i do.
what is instruction to get type of cpu.

thanks in advance for every answer

Share this post


Link to post
Share on other sites
I wrote code to do both CPU type and speed a few years back.

The CPUID instruction passes back info from the CPU like Manufacturer, Model, Features, etc.

The RDTSC instruction can be used in conjunction with the HighPerformanceCounter to time the CPU and give you a pretty accurate calculation of CPU speed.

You can lookup the CPUID instruction as well as the RDTSC instruction on various programming sites.

Here is a link to the Intel package that claims to do both.
http://developer.intel.com/support/processors/procid/cpuid/cpuinfo.htm

Keeb

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!