02-21-2016, 05:51 PM
Just to give a little update.
I continue to work on improving the AI. Vehicle design, production, factory building, and a few other things have been tweaked.
As of right now a full (300) AI, on a 30 year simulation, is producing a 30mb save game file. Where as 1.19.1 produces a 10mb save game file.
While this is a flawed measurement. It is pretty safe to assume that the AI is producing roughly 3 times the output. Looking at the raw data, more companies are staying in business, and more cars are being built. Awesome!
But with all good things there is some bad. I spent the first few weeks of 1.19.2 optimizing the game because I anticipated improved AI will result in slower turn times. And I was correct.
With a 10mb save game, the current code is roughly 30% faster than 1.19.1. However with the AI producing more data, full AI turn times are now 2.8x slower! I should be able to optimize this even more. But it's looking like I won't be able to drastically improve the AI without a nearly linear increase in turn times.
There is a silver lining however. With improved AI, Random 50-100 AI should provide the same amount of challenge as 1.19.1's AI while at the same time having faster turn times than 1.19.1 full AI.
Also in v1.22 I will be implementing new maps which will have fewer cities. Less cities means less data to process while forcing players/AI to step on each other's feet more.
So net net, we're moving in a good direction. I would say 1.19.2 is a little over halfway finished.
I continue to work on improving the AI. Vehicle design, production, factory building, and a few other things have been tweaked.
As of right now a full (300) AI, on a 30 year simulation, is producing a 30mb save game file. Where as 1.19.1 produces a 10mb save game file.
While this is a flawed measurement. It is pretty safe to assume that the AI is producing roughly 3 times the output. Looking at the raw data, more companies are staying in business, and more cars are being built. Awesome!
But with all good things there is some bad. I spent the first few weeks of 1.19.2 optimizing the game because I anticipated improved AI will result in slower turn times. And I was correct.
With a 10mb save game, the current code is roughly 30% faster than 1.19.1. However with the AI producing more data, full AI turn times are now 2.8x slower! I should be able to optimize this even more. But it's looking like I won't be able to drastically improve the AI without a nearly linear increase in turn times.
There is a silver lining however. With improved AI, Random 50-100 AI should provide the same amount of challenge as 1.19.1's AI while at the same time having faster turn times than 1.19.1 full AI.
Also in v1.22 I will be implementing new maps which will have fewer cities. Less cities means less data to process while forcing players/AI to step on each other's feet more.
So net net, we're moving in a good direction. I would say 1.19.2 is a little over halfway finished.
"great writers are indecent people, they live unfairly, saving the best part for paper.
good human beings save the world, so that bastards like me can keep creating art, become immortal.
if you read this after I am dead it means I made it." ― Charles Bukowski
good human beings save the world, so that bastards like me can keep creating art, become immortal.
if you read this after I am dead it means I made it." ― Charles Bukowski