Some bugfixes |
Post Reply | Page <12 |
Author | |
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
|
Hey Rill,
You're absolutely right that there are often multiple sieges going on, and that they might always hit at roughly the same second, but the same millisecond is very rare, the event queue is linear, and - even if two events are due to occur at the same millisecond - the one that was logged in the table's incrementing identity key will take precedence before the other one. The weirdness with repeating de-levelling (probably) only occurs because of a) overlapping concurrent threads, or b) a 1 to 2 millisecond latency in the database writes. It's sorta like when something was due to complete at (eg) 23:55:55 and actually completes at 23:55:56. In database world, it was probably due to complete at 23:55:55.998, but took 2 milliseconds to run, and so its completion time was 23:55:56. If there was also an event due, on the same thing (eg a building, a sov) at 23:55:55.999 then I believe this is where the duplicates are happening. I think I'll use all three options (current, a and b) simultaneously, and round-robin which the server chooses to use on each event. I can then - after a month or so (as this isn't really a game-breaking bug) - look at the data to see which one solves (or diminishes) the issue best! Regards, SC |
|
Post Reply | Page <12 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |