FS#6157 - multithreading

Attached to Project: OpenTTD
Opened by Erich Eckner (deep42thought) - Tuesday, 28 October 2014, 10:56 GMT
Last edited by andythenorth (andythenorth) - Wednesday, 16 August 2017, 07:04 GMT
Type Feature Request
Category Core
Status Closed
Assigned To andythenorth (andythenorth)
Operating System All
Severity Low
Priority Normal
Reported Version other
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



it would be nice to have a multithreaded openttd, which scales well with the available CPU(core)s. I understand, that this is a serious change in the code, but I think, it is rather nice and inevitable for future generations of cpus, which usually increase number of cores and not frequency.
I played a long time with an older version (<=1.2.0), which brought it to 13% cpu usage on 8 cores in a large "common" game, and just briefly checked out 1.4.4, which seems to get to 14% with the old game.

This task depends upon

Closed by  andythenorth (andythenorth)
Wednesday, 16 August 2017, 07:04 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Additional multi-threading is not a current goal for OpenTTD.
Comment by Marctraider (Marctraider) - Tuesday, 28 October 2014, 17:29 GMT
Try compiling with a recent intel compiler, it can speed up the game significantly, well at least on intel cpu's. cant say much for AMD since i do not posses one.
Comment by Marctraider (Marctraider) - Tuesday, 28 October 2014, 17:31 GMT
A 'fully multi threaded' game is not going to happen though. but it does partial multi threading, i can often get 30 cpu out of 25 (100 *4) with 4 cores so its definately using more then one core, sometimes noticable with fast forward :p