sgolodetz / game1666

A fledgling city-building game (in C#) based in the Stuart period around the Great Fire of London (in 1666).
2 stars 2 forks source link

Improve the fairness of the resource matchmaker #63

Open sgolodetz opened 12 years ago

sgolodetz commented 12 years ago

At the moment, the resource matchmaker repeatedly sends resources to the same entities until they no longer need them, leading to starvation of the other entities requesting the same resources.

sgolodetz commented 12 years ago

One way of getting around this would be to introduce a timeout for individual entities, i.e. after a match has been made, an entity has to wait a little while before making another.