Most active commenters
  • michalc(4)

←back to thread

302 points doener | 11 comments | | HN request time: 1.49s | source | bottom
1. michalc ◴[] No.42315249[source]
I have posted this before, but I’ve been working on a wrapper for OpenTTD to turn it from a game to a (slightly!) more serious system for research/experimentation, especially using its AI system:

https://github.com/michalc/OpenTTDLab

replies(4): >>42315301 #>>42315603 #>>42315610 #>>42316424 #
2. teruakohatu ◴[] No.42315301[source]
This is really interesting. Submit it as a Show HN.
replies(1): >>42315316 #
3. michalc ◴[] No.42315316[source]
Ah I did! https://news.ycombinator.com/item?id=39254487

(Feels a bit soon to repost somehow…)

replies(1): >>42316144 #
4. scyzoryk_xyz ◴[] No.42315603[source]
I’ve been an avid OTTD player for over a decade, and always wondered how someone could do exactly this sort of thing.

Some of the addons, like the FIRS industrial economy are quite complex and it can be tricky to assess or estimate optimal routes/investment.

5. rantouan ◴[] No.42315610[source]
very good !
6. hyperman1 ◴[] No.42316144{3}[source]
I am looking at https://github.com/michalc/OpenTTDLab/blob/main/examples/02-... and wondering if this isn't hyperthreading being enabled.

If you have 4 real cores, with 2 hyperthreads, the system reports 8 CPUs. But that's fake. Hyperthreads share most of their compute and register resources, so they only work well if a core is spending most of its time waiting. 2 hyperthreads both doing full compute will basically work at half speed each, which is close to what your graph is showing.

BTW, you can check on Linux with this command LANG=C lscpu and checking the Thread(s) per core value

replies(1): >>42317519 #
7. indigoabstract ◴[] No.42316424[source]
I wish you would have given some concrete examples as I was curious what experiments are possible with your code in OpenTTD.

There was only one I could find: "exploring the performance of trAIns". I looked at the "trAIns" link and cannot understand what it does, other than being GPL licensed.

It's all very cryptic, without any explanations. To me that stands for "if you don't know already, you need not apply". Too bad.

replies(1): >>42316847 #
8. michalc ◴[] No.42316847[source]
Ah thanks for the suggestion! Will see if I can add examples or otherwise make things clearer
replies(1): >>42319341 #
9. MoreMoore ◴[] No.42317519{4}[source]
I wonder if the plot would look similar if you disabled hyperthreading but kept the same number of workers.
replies(1): >>42320954 #
10. indigoabstract ◴[] No.42319341{3}[source]
Thanks!
11. michalc ◴[] No.42320954{5}[source]
Ah I _think_ I ran this on a MacBook that as far as I know has 8 real cores…

But I since found that 4 are “efficiency” cores, so that could be the reason for the poor scaling(?)