Skip to main content

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on (thread.sleep()?). Also they should constantly checking the environment for aggressive monsters, other players. etc.

My question is, how to achieve it? Creatingshould I create a newdiff. thread for each player (5000+ threads?looks not the best idea) or there is a differentuse another design strategy?

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on (thread.sleep()?). Also they should constantly checking the environment for aggressive monsters, other players. etc.

My question is, how to achieve it? Creating a new thread for each player (5000+ threads?) or there is a different design strategy?

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on. Also they should constantly checking the environment for aggressive monsters, other players. etc.

My question is, should I create a diff. thread for each player (looks not the best idea) or use another design strategy?

Post Closed as "Needs more focus" by Vaillancourt, CommunityBot
deleted 12 characters in body
Source Link
Kromster
  • 10.7k
  • 4
  • 54
  • 67

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on (thread.sleep()?). Also they should constantly checking the environment for aggressive monsters, other players. etc. My

My question is, how to achieve it? Creating a new thread for each player (5000+ threads?) or there is a different design strategy?

Thank you.

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on (thread.sleep()?). Also they should constantly checking the environment for aggressive monsters, other players. etc. My question is, how to achieve it? Creating a new thread for each player (5000+ threads?) or there is a different design strategy?

Thank you.

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on (thread.sleep()?). Also they should constantly checking the environment for aggressive monsters, other players. etc.

My question is, how to achieve it? Creating a new thread for each player (5000+ threads?) or there is a different design strategy?

Source Link

AI multithreading

MMO game. ~5000 (fake) players should be controlled by the server. Many of them have different classes -> different behavior. They should make some random pauses while doing some actions (~500-1500 ms) before attacking the next monster or after picking up a drop and so on (thread.sleep()?). Also they should constantly checking the environment for aggressive monsters, other players. etc. My question is, how to achieve it? Creating a new thread for each player (5000+ threads?) or there is a different design strategy?

Thank you.