Solved

CPU speed

Posted on 1999-01-28
7
328 Views
Last Modified: 2010-04-06
D3, WIN98

Hi,

i have written a speedy game.
But i have a problem : depending of the CPU-speed it works slower or faster. That's normal.
But this is not good: it should work on every PC nearly
with the same speed.
Any idea how to detect the CPU-speed ?
when i know the cpu-speed i will do on fast PCs some arithmetic operations to slow the PC down.
(i can not use the timer-interrupt or "gettickcount" because then the game is too slow, even on fast PCs).

thanks !
titz
0
Comment
Question by:titz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 1363695
Hi,

Take a look here
http://www.bhnet.com.br/~simonet/

One of the best....
:O)

0
 
LVL 1

Author Comment

by:titz
ID: 1363696
hi bruintje,

nothing found there !

titz
0
 
LVL 44

Expert Comment

by:bruintje
ID: 1363697
Hmmm.....
If you have Delphi 4, look for the AS Omnitools, it's a delphi package and one of the components is TASCpuInfo, it gives info about the CPU and also the speed.

If you have Delphi 3, look for the AS PowerTolls TASCpuInfo is the first component on the page.

Good luck
:O)

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Accepted Solution

by:
itamar earned 50 total points
ID: 1363698
Hi,

take a look at these components. I think you can use one of them or extract the function you need from the source code:

http://www.mistral.co.uk/gbamber/bin/CPUID.ZIP

or

http://ftp/d20free/cpu_test.zip

IHTH
0
 
LVL 15

Expert Comment

by:simonet
ID: 1363699

TASCpuInfo will also report the motherboard serial number and BIOS manufacturer and version.

I just uploaded a new release of TASCpuInfo this Saturday (Jan 30th), for both Delphi 3 (AS PowerTools) and Delphi 4 (AS OmniTools).

Yours,

simonet

0
 
LVL 44

Expert Comment

by:bruintje
ID: 1363700
Glad to see you here Alex! :O)
0
 
LVL 1

Author Comment

by:titz
ID: 1363701
hi itamar,
thanks for the address. to know the source-code is important to me.
Thanks !!

Hi bruintje,
i was looking under "tips and tricks", not under Powertools.
but there is no source-code. therefore itamar will have the points.
Thanks!

titz

0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question