Rhennthyl
|
Posted - 2011.07.27 16:31:00 -
[1]
Originally by: T1nyTradingMan
Originally by: CCP Veritas
Originally by: Sessym Great tool there!
Also, just curious, wouldn't it be better from an optimization viewpoint if everything that applied to the whole fleet (like warp speed) would be an attribute of the fleet itself? Every bit of free CPU time is useful, no?
That's a really good idea, I hadn't thought of that! Right now, the implementation of fleets is a bit of a mess, but I'll make a note to myself to make exactly this happen when we get around to refactoring how fleets work.
I didn't want to suggest anything knowing nothing about the actual system but this immediately jumped to my mind as well. It would make sense (not knowing the system) that on creating a fleet a fleet warp speed (the lowest) among other attributes (including a count of the number of ships with that value perhaps) was assigned to the fleet then if anyone joins the fleet compare them to that value, if anyone leaves the fleet with a warp speed equal to the fleet warp and the count mentioned earlier hits zero then the whole fleet gets pole'd again. If a ship leaves the fleet with a higher value nothing needs to change. Then entering warp would not require that activity and (depending on how it is handled now) the changing of fleet makeup should be much less taxing..
But knowing software and having given it very little of my time I could be way way off and no where near as clever as you guys. Basically I didn't want to say anything as I didn't want to insult you guys, your obviously experts in your field and none of the projects I have worked on remotely resemble the scale.
A few quick thoughts on the potential complications:
If you stored the fleet warp speed as an attribute, you would probably have to also create separate sub-fleet attributes for wings and squads since they can also be group-warped. Additionally, you would need to decide whether to refresh this value based on when someone enters/leaves grid as well as enters/leaves fleet unless you want the fleet speed to be affected by ships who will not be warping with the group. That could still be an acceptable tradeoff if the performance gain was high enough, but itĘs a consideration that may be important.
|