Jump to content
  • Advertisement

Archived

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

tylerbingham

get the target computer info

This topic is 5679 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

Advertisement
For further info on the cpu you''ll have to do some asm - check for the existence of the CPUID instruction and (if it exists) use it to retrieve the make, model, family and stepping info (Google). If it isn''t, you''ll have to base your conclusions on even more processor specific info. Note that all newer cpu''s have this instruction (since Pentium or 486 or something - not too sure). Furthermore, AFAIK new cpu''s (Atlons > 800 MHz (and their equals) or so - I could be wrong) have some burned in string which you can retrieve directly without having to base you conclusion on a set of tests. If you want cpu speed, then, again, you''ll have to fall back on testing. The instruction you''re looking for here is RDTSC (read time stamp counter). This is pretty heavy if you have never done assembly before - and what''s bad about it, is that there is no good API out there (such as OpenGL for the gpu), so I''m afraid you''ll have to write everything from scratch...

Crispy

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!