New commit:
- included graphics paging from the Caveman2Cosmos mod: visible plot graphics are only rendered when they are currently in view
- decreased Chinese and Japanese tech speeds
- starting workers appear in the first city you keep, not the first city you acquire
The graphics paging works as follows: everything that is displayed on tiles in sight is only rendered when currently in view. This includes features, improvements, cities, units, and so on. Elements that have recently been rendered are kept in cache to a degree, until something is rendered elsewhere to force it out.
Previously the engine rendered everything on the map, even if you could not see it. So this change is likely to substantially improve performance, especially for the late game where there is lots of stuff on the map. Hopefully minute long AI turns will be over faster now.
I haven't tested this much, only verified that the mechanism works at all and doesn't cause crashes, so please report back.
The downside of this is that if you switch your view to different places, everything on these plots has to be rendered again, which can take a noticeable number of milliseconds. I want to make the feature optional soon, but I thought to get more feedback when it's mandatory for a while
- included graphics paging from the Caveman2Cosmos mod: visible plot graphics are only rendered when they are currently in view
- decreased Chinese and Japanese tech speeds
- starting workers appear in the first city you keep, not the first city you acquire
The graphics paging works as follows: everything that is displayed on tiles in sight is only rendered when currently in view. This includes features, improvements, cities, units, and so on. Elements that have recently been rendered are kept in cache to a degree, until something is rendered elsewhere to force it out.
Previously the engine rendered everything on the map, even if you could not see it. So this change is likely to substantially improve performance, especially for the late game where there is lots of stuff on the map. Hopefully minute long AI turns will be over faster now.
I haven't tested this much, only verified that the mechanism works at all and doesn't cause crashes, so please report back.
The downside of this is that if you switch your view to different places, everything on these plots has to be rendered again, which can take a noticeable number of milliseconds. I want to make the feature optional soon, but I thought to get more feedback when it's mandatory for a while
