freeciv21 icon indicating copy to clipboard operation
freeciv21 copied to clipboard

Make client use server-side city governor

Open daavko opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. Currently, the client doesn't use the server-side city governor at all. This should be changed so it does. The server-side governor appears to do the exact same thing as the client-side one (both use shared features from common/aicore/cm.cpp). Additionally the server-side one runs even if the client isn't connected, and can run during TC in cases where the city changes size instead of the default one, which would open up more possibilities in city management (for example, not making the city uselessly take +16 food when it needs 20 to grow, wasting most of it).

Describe the solution you'd like Make the client use the server-side governor everywhere where it currently uses the client-side one.

Describe alternatives you've considered Leaving it as-is

Additional context Looks like mainline Freeciv recently had some changes regarding how the server-side governor is activated, maybe those should be ported as well? I don't really understand why they removed one way of toggling it and added another one, since both seem to do the same thing. https://osdn.net/projects/freeciv/ticket/43752 https://osdn.net/projects/freeciv/ticket/45485

daavko avatar Mar 17 '23 20:03 daavko

@lmoureaux Does this require a change to the network protocol?

jwrober avatar Mar 17 '23 21:03 jwrober

I don't know yet

lmoureaux avatar Mar 17 '23 22:03 lmoureaux

This would have serious performance implications since the governor can be extremely slow with Longturn rulesets

lmoureaux avatar Nov 26 '23 22:11 lmoureaux