JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
567 stars 129 forks source link

Update: Russian translation - Day lengh factor (expansed description and rollback to the old title) #716

Closed Qwest8K closed 1 month ago

Qwest8K commented 1 month ago

I decided that previous title of this setting was more accurate.

Also I expanded its description with that increasing this value will reduce the load on the CPU when calculating "world ticks" (useful on maps larger than 16 777 216 tiles).

Qwest8K commented 1 month ago

@James103 Hope this translation sounds correct.

JGRennison commented 1 month ago

Performance is not the reason why this setting exists, or a reason why a user should change the setting value, though it can slightly improve performance in some cases. I don't see that this extra text is really necessary/helpful?

Qwest8K commented 1 month ago

Well, in my case, increasing the day length factor has significantly improved performance on maps, which size is exceed limits of original OpenTTD. So I decided to add this note.

James103 commented 1 month ago

Well, in my case, increasing the day length factor has significantly improved performance on maps, which size is exceed limits of original OpenTTD. So I decided to add this note.

I can reproduce the same behavior on my end as well. On a 4k by 4k empty map (16M tiles), the game runs at 13x speed with a day length factor of 1, but at around 50x speed with a day length factor of 4, and at around 80x speed with a day length factor of 120. On an 8k by 8k empty map (64M tiles), the game runs at 2.4x speed with a day length factor of 1, but at around 9x speed with a day length factor of 4, and at around 13x speed with a day length factor of 120.

A day length factor value as low as 4 is sufficient to reduce the load on the server caused by "World ticks" by around 70% on an empty map (compared to a day length factor of 1), meaning almost all servers will benefit (performance-wise) from increasing the day length factor to a minimum of 4. Higher day length factors do improve performance by further reducing the load caused by "World ticks," but that performance improvement is marginal at best and should not be viewed as the sole reason to further increase the day length factor.

CPU: Intel Core i5-9400F, 2.90 GHz base clock, 3.90 GHz max boost OS: Windows 10, 64-bit

JGRennison commented 1 month ago

Thanks