I spent the past two days working on code efficiency. I used the system clock to find trouble spots and rewrite code to run faster.
Updating the city view took 120 milliseconds in my tests, which is now down to around 15ms. The time to move citizens in a city dropped from 100ms to 10ms, and selecting production dropped from 110ms to 2ms.
However, there is still an approximately 100 millisecond delay when opening and closing cities I was unable to track down (separate from the code
updating the city view). I tested the city view, city banners, top bar, yield library, and other files I suspected might be running code, but none of them appear to be active. There is also an approximately 150 millisecond delay when selecting technologies. I'll continue searching for possible causes, but no promises.
A more noticeable change is games should start about 30 seconds faster now. I re-enabled a check to ensure the autotips table is initialized only once. This might cause an old bug to resurface.
Click to report if you see incomplete building tooltips.