Solved

CPU speed

Posted on 1999-01-28
7
326 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
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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