Debug build low performance.

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

lukasz1985
Route Supervisor
Route Supervisor
Posts: 429
Joined: 27 Mar 2013 08:58
Location: Strumien
Contact:

Re: Debug build low performance.

Post by lukasz1985 »

Eddi wrote:
lukasz1985 wrote:Isn't this a case for GCC?
distributing processes/threads onto multiple cores happens in a lower layer of the OS, which neither MSVC nor GCC can and will care about.
Yes, I know that - and that's why I'm asking about outcome of this - which I THINK is that the OS will assign a process to a free core and make it parallell to the processes that currently run at the first core. And this will result in parallell execution of processes (if there are no different circumstances - like file locks, I've mentioned).
Last edited by lukasz1985 on 23 Sep 2015 18:19, edited 1 time in total.
Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: Debug build low performance.

Post by Eddi »

yes. both threads and processes are methods of parallelisation, but processes are more independent than threads, which can share memory (with all sorts of accompanying problems) [simplified description]
lukasz1985
Route Supervisor
Route Supervisor
Posts: 429
Joined: 27 Mar 2013 08:58
Location: Strumien
Contact:

Re: Debug build low performance.

Post by lukasz1985 »

Ahh.. ok, I get it, I was making wrong conclusion from what @JGR said - that multi-process prevents parallelisation.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: Debug build low performance.

Post by Alberth »

JGR wrote:you need to pass -j to make
Nah, just set a sane default in your shell init script:

Code: Select all

export MAKEFLAGS=-j4
Being a retired OpenTTD developer does not mean I know what I am doing.
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: Debug build low performance.

Post by adf88 »

Eddi wrote:distributing processes/threads onto multiple cores happens in a lower layer of the OS, which neither MSVC nor GCC can and will care about.
I don't know if they do, but they can (to some point): Linux, Windows, OpenMP, MPI...
:] don't worry, be happy and checkout my patches
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests