Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

People that understand client-side prediction and client-side interpolation, I have a question:

When I play the game Team Fortress 2, and type cl_predict 1 into the developer's console, it enables client-side prediction. The also says "6 predictable entities reinitialized". It says this regardless of how many players are on the server, which makes sense, because other players are not predictable entities.

I thought client-side prediction was only for the movement of the player. Are there other entities that the client can provide prediction for?

share|improve this question
1  
Those 6 predictable entities could be manager objects, like PlayerManager etc... They don't have to correspond directly with anything that you see in game. As for what can be predicted: player movement, projectile movement, hits, misses, round endings, game endings. Actually all the state that is shared via the server. –  Roy T. Apr 14 '12 at 8:18
    
It makes a lot of sense to predict projectiles. However, for hits and misses, I'd imagine the only prediction you can do is some visual or sound feedback, you can't predict a kill, right? –  newprogrammer Apr 14 '12 at 8:25
    
Well depends on how sure you are that it's going to be a hit or miss, but most games wont do it I suppose. –  Roy T. Apr 14 '12 at 8:34
add comment

1 Answer

Client-side prediction can be used for everything that needs to stay synced between all players, like physics objects and bullets. You basically run the simulation on all computers, but every so often the server "overwrites" the current state so everybody sees the same thing.

Most objects don't really need to be updated that often, and non-gameplay objects like ragdolls or particles don't need to be synced at all.

share|improve this answer
add comment

Your Answer

 
discard

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.