When we click the "Switch" button on generals, we have to wait for the data to be transferred. So, I think, could we delay this data transfer?
Say, generals have a list of all troops, both normal and elite, and a variable TroopType (0: normal, 1: elite). Click the "Switch" button to only change the UI and the value of TroopType. No data is transferred yet.
When we assign troops, we make 2 caps for 2 troop types. For example, Major General's cap is 270. That means we can assign up to 270 normal troops and 270 elite troops. But, in the end, only 1 type of troops is saved, the other is set to 0.
Only when we click "OK" button, if TroopType value = 0, the normal troops are saved, and all elite troops are set to 0. And, vice versa.
PS: There is an undocumented change (or I missed the change log). Before, when we applied a buff, we had to wait until the buff was applied before we could apply another buff. Now, we can apply buffs non-stop without waiting for anything. This is a wonderful change. I'm really grateful for that. I can buff my island much faster now.