Author Topic: Population not actually growing by the listed growth%?  (Read 175 times)

0 Members and 1 Guest are viewing this topic.

Offline Kyle

  • Petty Officer
  • **
  • K
  • Posts: 21
  • Thanked: 9 times
Population not actually growing by the listed growth%?
« on: September 08, 2018, 12:10:31 PM »
So on a fresh game, Earth starts out at 500 pops and a growth rate of 2.52%

But if I increment 5 days, the population jumps to 500.200

Even though 500 pops * (1 + 0.0252 growthRate * 5 days / 360 daysPerYear) = 500.175   / For pasting into calculator: 500 * (1 + 0.0252 * 5 / 360) 

What's interesting is that if I pretend there are 315 days in a year, it comes out to a perfect 500.200!

"Compounding interest" is not the answer, that doesn't even get it close to 500.200.

Further, if I increment 5 days 6 times, the population lands at 501.200, but if I increment by 30 days 1 time, the population lands at 501.050, even if I force sub pulses to be 1 or 5 days.

Before I write these off as just a quirk/bug to take into account, is there any other explanation, particularly for why the pop grows faster than it should?
 

Offline Havear

  • Lieutenant
  • *******
  • H
  • Posts: 175
  • Thanked: 7 times
Re: Population not actually growing by the listed growth%?
« Reply #1 on: September 08, 2018, 01:03:44 PM »
I'd like to add, real quick, that the default big tick time is only "approximately" five days at 400,000 seconds, which is likely a pretty fair chunk of time shaved off. Additionally, Aurora models a year as 12 months of 30 days of 24 hours, rather than using a more accurate calendar.
 

Offline QuakeIV

  • Registered
  • Lt. Commander
  • ********
  • Posts: 265
  • Thanked: 18 times
Re: Population not actually growing by the listed growth%?
« Reply #2 on: September 08, 2018, 01:53:24 PM »
Regarding the calendar thing, Steve is using a time library from C# for the new version, so it will display years exactly as we have them in the real world.
« Last Edit: September 08, 2018, 03:23:29 PM by QuakeIV »
 

Offline Kyle

  • Petty Officer
  • **
  • K
  • Posts: 21
  • Thanked: 9 times
Re: Population not actually growing by the listed growth%?
« Reply #3 on: September 08, 2018, 02:24:36 PM »
500 pops * (1 + 0.0252 growthRate * 5 days / 360 daysPerYear) = 500.175

This already factors in a 360 day year.  And using 400000 seconds rather than 432000 seconds (5 days) would make the actual growth that occurs even more wrong.

Also if you take a custom turn of 424800 seconds, you get 0.15m people, but if you take 424801 seconds instead, you get 0.20m people.

669601 = 0.3 growth
669600 = 0.25 growth
540001 = 0.25 growth
540000 = 0.2 growth
424801 = 0.2 growth
424800 = 0.15 growth

Yeah gonna go with bug :)
« Last Edit: September 08, 2018, 05:20:01 PM by Kyle »
 

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53