Config
Log for #openttd on 26th October 2025:
Times are UTC Toggle Colours
15:00:38  *** Webster has joined #openttd
15:02:01  *** WormnestAndroid has quit IRC
15:16:15  <DorpsGek> [OpenTTD/OpenTTD] livingBEEF commented on issue #14734: [Bug]: cargodist: vehicle picks up cargo to "(No unloading and take cargo)" station https://github.com/OpenTTD/OpenTTD/issues/14734
15:24:58  <xarick> what are alternatives for std::map and std::unordered_map?
15:26:12  <xarick> gonna see if i can do something about TerraformAddDirtyTileAround
15:27:15  <xarick> FlatSet?
15:33:49  *** Smedles has quit IRC
15:34:02  *** Smedles has joined #openttd
15:50:26  <andythenorth> Are we short of memory?
15:51:03  *** WormnestAndroid has joined #openttd
15:58:37  <peter1138> A set is not a map.
16:23:06  <andythenorth> How much memory for 65536 industry tile IDs? 👀
16:24:01  <xarick> tested FlatSet, it's slow 🙁
16:24:23  <xarick> std::set continues to beat it on every case I test
16:32:36  <peter1138> andythenorth, I still think we can somehow make industry tile IDs be per industry.
16:33:00  <peter1138> But I think the spec was deliberately designed in a way that makes that not feasible.
16:33:08  <peter1138> The whole "subtitute" bullshit.
16:34:29  *** Borg has joined #openttd
16:35:32  <Borg> _jgr_: I went a little crazy with Routing Restrictions.. and implemented and-if along or-if :)
16:36:13  <peter1138> Subsequent changes to things like cargoes mean the ability to remove industry sets and have a fallback take its place is pretty much pointless.
17:19:54  *** WormnestAndroid has quit IRC
17:21:25  *** WormnestAndroid has joined #openttd
17:29:20  *** Flygon has joined #openttd
17:45:56  *** WormnestAndroid has quit IRC
17:47:35  <xarick> I'm trying to do stupid stuff
17:47:48  <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1432063178694721679/image.png?ex=68ffb044&is=68fe5ec4&hm=e6114d5d43ce79056480025b55538d4f414dac94064f2032f44d177769085587&
17:48:29  <xarick> would ts->dirty_tiles.contains(tile) be faster than comparing the sizes of before and after?
17:49:24  <xarick> oops ts->dirty_tiles_lookup.contains(tile)
17:50:00  <xarick> does .insert return a bool if it's inserted?
17:51:01  *** WormnestAndroid has joined #openttd
17:51:28  <xarick> that check is wrong even lol
17:53:06  <_jgr_> xarick: `insert` generally returns a result which tells you this
17:58:00  <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #14735: Codefix: Clear unused map bits in MakeXXX() map helpers. https://github.com/OpenTTD/OpenTTD/pull/14735
17:59:53  <xarick> oh, it returns a std::pair with the value and a bool
18:02:52  <xarick> fantastic!
18:03:44  <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1432067189640532179/image.png?ex=68ffb400&is=68fe6280&hm=28cd90ae4e73e525122857cd0e53be9cab552a42578125a175f820365c4f2a9e&
18:14:09  <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1432069809297952909/image.png?ex=68ffb671&is=68fe64f1&hm=15c667d3bf5fe3475c14cea86dcb3554772feaa8ec81645532c2d0d6ccb097c2&
18:18:37  <Borg> _jgr_: also, I think its better to use pf_yapf_pbs_back_signal_penalty for use in Add penalty, I use it in my patch and just put 3 values out there multipled by 1,2,3 + custom :)
18:18:53  <Borg> its more meangfull than small, normal, big :)
18:21:44  <peter1138> 2770 packages can be upgraded.
18:21:46  <peter1138> Shall
18:21:49  <peter1138> Shall I do it?
18:22:21  <_jgr_> Borg: 1500 seems a bit large for a base value?
18:24:38  <_jgr_> In any case it is awkward to change the values now, as it'd mess up existing save games
18:28:55  <Borg> _jgr_: how come? Values of 

Powered by YARRSTE version: svn-trunk