In article <C91E41F2-AB8E-4DB2-98C8-D5C6ABD6B6B6@microsoft.com>,
=?Utf-8?B?dWxpbGxpbGxpYQ==?= <ulillillia@discussions.microsoft.comwrote:
Quote:
>That's the same timer thing I mentioned in the first. What bothers
>me about using it is the "return value" section. Hardware
>supporting it? How common are these high-res timers?
For QueryPerformanceCounter(), the high-res timers are usually from
the RDTSC assembly instruction. Intel was the first one to add them,
and they did so in the Pentium 1 (the original, which also had that
FDIV) bug. Non-Intel brands added this instruction eventually; see
http://en.wikipedia.org/wiki/RDTSC for more info. I'd guess that
anything made in the last 5 years probably supports it fine. But,
you're trying to target OSs nearly 12 years old, which means it can
probably run on HW 14+ years old.
If you read the docs on QPC(), MS does the right thing and falls
back to less-precise timers if RDTSC instruction isn't present. Which
means you can ship your title, and recommend that people to get with
the 21st century if it doesn't work.
Quote:
>One last thing I thought of, but not required - how do you switch to
>fullscreen mode and back to windowed mode?
Give up your foolish tilting at windmills and use DirectX,
already. That's what it's built to do. DX3 did this fine. You don't
have do use DX9.
Quote:
>The reason for targeting Windows 95 is due to the high simplicity of
>my early intended games/programs.
You're mistaking simplicity of your system requirements with
simplicity of OS. How many people *realistically* are out there with
Win95? And able to download/acquire/run your code on such a system?
Just because you can do something doesn't mean you *should* do
that. Make your game run w/ very low system requirements-- that's
good. Making yourself jump thru a lot more hoops to support a handful
of users -- that's pointless. Just because you "could" mow your lawn
with a elementary-school safety scissors doesn't mean you
should. Newer OSs and APIs like DirectX give you the power tools to
achieve your ends much faster.
Nathan Mates
--
<*Nathan Mates - personal webpage
http://www.visi.com/~nathan/
# Programmer at Pandemic Studios --
http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein