Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I still play counter strike 1.6/CSS these days, and as you know, when shots are fired, the crosshair expands.

When the frame rate drops, this crosshair animation is also affected by the frame rate.

Can it be considered like a programming/design flaw or is it like so for anti-cheat reasons ?

share|improve this question
Could you elaborate on what sort of animation you are talking about and how it's affected? – CiscoIPPhone Feb 22 '11 at 10:20
I believe when a shot is fired the crosshair expands and returns to normal after set amount of time. I don't remember the crosshair being animated in any other sort of way. – Ray Dey Feb 22 '11 at 14:21
To expand on Ray's point, the 4 lines comprising the cross go outwards to form a bigger crosshair to make it harder to aim. This means literally firing everywhere becomes inefficient to aim well. – The Communist Duck Feb 22 '11 at 19:12
@The Communist Duck: The purpose of the expanding crosshair is not to make it harder to aim, but to represent that the weapon is becoming less accurate. It feeds back to the user, not depends on the user to create an effect. – DeadMG Feb 22 '11 at 20:11
I stand corrected. :P – The Communist Duck Feb 22 '11 at 20:15
up vote 2 down vote accepted

Anything you don't like can be considered a flaw. Who's to decide what is and what isn't?

As it happens, pretty much all your graphics are frame-dependent. You can't draw something on the screen in between frames, by definition. The only possible way around that is to use some sort of hardware overlay system but I don't know how well supported they are these days.

share|improve this answer
I just thought it would have some anti cheat matter... – jokoon Feb 22 '11 at 19:31

The crosshair animation is only a general indicator. All the physics takes place on the game server and thus is totally independent of the client's frame rate.

share|improve this answer
Have you already/ever played Counter Strike on a slow/laggy machine ? – jokoon Feb 22 '11 at 17:06
@jokoon: Why yes, I have. And it doesn't matter how you feel about that experience. It is a fact that the server performs physics, not the client. – DeadMG Feb 22 '11 at 17:18
Actually @DeadMG, the client handles the recoil, the server processes the collisions afterwards. But yes, recoil is deterministic, and runs the same way no matter the framerate. – AttackingHobo Feb 22 '11 at 18:11
attackinghobbo: well I played a lot, and I can tell that having a slower computer makes a player spray much less efficiently. I don't really know if that's a biased feeling for some reason, but even though, it should have been fixed... – jokoon Feb 22 '11 at 19:33
@jokoon: It probably does, because spraying effectively relies on moving the crosshair down as the recoil moves the gun up, which is a less effective reaction on a slower computer. – DeadMG Feb 22 '11 at 19:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.