Advertisement

Multithread?

Started by November 18, 2002 01:30 PM
14 comments, last by AnitraZ 21 years, 11 months ago
Well, I used to program under Visual Basic 6. With DirectX7 a simple SDK exemple, which showed a few non-animated sprites bouncing on the screen, was running at about 60fps here (P2 350Mhz, Asus V7100). Increasing those objects to 90-100, the frame rate went to 30 (!!!). Ok, I know that C++ is more powerful than VB, but try counting the loops needed in a cycle for Starcraft, supposing there are 200 units on screen. If it runs at 40fps, we have 200 * 40 = 8000 loops per second, where 40 are for blitting operations, input... And there is DirectSound which is playing something in background. I don't think all this is possible nowdays, even for C++.

[edited by - AnitraZ on November 19, 2002 9:28:47 AM]
"Your time has long pasted... Be gone now... You are ancient history..." - Vampire Night
Uhh, yes it is.

Former Microsoft XNA and Xbox MVP | Check out my blog for random ramblings on game development

Advertisement
Hm very few things are impossible with a computer nowadays.
Some time ago one even sliced me into 240 images and I survived
(it used only 1 thread to do so BTW)
Besides, you probably had vsync on With vsync on, if your frame rate drops slightly the refresh rate of your monitor, you''ll end with half the frame rate. You always have an actual frame rate which is a factor of the refresh rate (i.e. 60, 30, 15, 7.5, etc).

Anyway, that''s not the point. The point is that a game like Starcraft, even with a 1000 units is pretty measly for today''s systems - remember starcraft is a couple of years old now...

If I had my way, I''d have all of you shot! codeka.com - Just click it.

You only have to check each unit every half a second, not every frame, silly.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Ohhh! I see
"Your time has long pasted... Be gone now... You are ancient history..." - Vampire Night

This topic is closed to new replies.

Advertisement