Solved

CPU speed

Posted on 1999-01-28
7
322 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
Comment Utility
Hi,

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

One of the best....
:O)

0
 
LVL 1

Author Comment

by:titz
Comment Utility
hi bruintje,

nothing found there !

titz
0
 
LVL 44

Expert Comment

by:bruintje
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 4

Accepted Solution

by:
itamar earned 50 total points
Comment Utility
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
Comment Utility

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
Comment Utility
Glad to see you here Alex! :O)
0
 
LVL 1

Author Comment

by:titz
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now