IRC logs for #openttd on OFTC at 2024-11-11
            
02:31:29 *** tokai has joined #openttd
02:31:29 *** ChanServ sets mode: +v tokai
02:38:29 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
03:20:22 *** Wormnest has quit IRC (Quit: Leaving)
03:22:36 *** D-HUND has joined #openttd
03:26:09 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:45:46 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/ce64d5f5d95859eed84f6f54d12bd7bd29f25725
04:45:47 <DorpsGek> - Update: Translations from eints (by translators)
05:00:39 *** D-HUND is now known as debdog
05:11:36 *** keikoz has joined #openttd
06:46:03 <andythenorth> PeterNviaGitHub: ๐Ÿ‘€ just in time for me being done with cargo classes! A new project ๐Ÿ˜‰
06:54:54 *** SigHunter has quit IRC (Remote host closed the connection)
06:55:55 *** SigHunter has joined #openttd
07:16:17 <DorpsGek> [OpenTTD/survey-web] survey-summary[bot] pushed 1 commits to main https://github.com/OpenTTD/survey-web/commit/cc2c53827c874edf0c79213b6639f32683ee0b82
07:16:18 <DorpsGek> - Add: summary for week 45 of 2024 (by OpenTTD Survey)
08:06:24 <DorpsGek> [OpenTTD/OpenTTD] felixprigge updated pull request #12683: Fix: Timetable precision https://github.com/OpenTTD/OpenTTD/pull/12683
09:01:56 *** keikoz has quit IRC (Ping timeout: 480 seconds)
09:11:13 *** keikoz has joined #openttd
09:30:44 <kuhnovic> After having used windows 11 for a while on my work machine, I can only conclude that I truly hate it
09:30:55 <LordAro> :o
09:35:43 *** reldred has joined #openttd
09:35:43 <reldred> yeah it's not great hey
09:36:00 <reldred> feels like a relationship that steadily gets more and more abusive.
09:36:42 <truebrain> kuhnovic: I do not share that opinion ๐Ÿ™‚
09:37:13 <truebrain> Even worse, I truly appreciate it more than Win10
09:37:13 <reldred> I love it when Explorer just decides to slowly flake out over a day
09:37:43 <reldred> right click menu just stops working, etc.
09:38:19 <reldred> Seems to be worse on any file with a cloud storage provider backing. At first I thought it was just my home machine with nextcloud, but no, I get the same behavior on my brand new work computer with onedrive...
09:51:29 <peter1138> I hated the random start menu adverts.
09:51:55 <peter1138> (Adverts for Microsoft services, not malware-type adverts)
09:56:25 <peter1138> Hmm, is it possible to host an html file directly on github or does it need to be deployed somewhere.
09:57:05 <peter1138> Github Pages?
09:58:39 <LordAro> yeah, needs to be deployed
10:03:58 <kuhnovic> Today I wanted to create a CMakeLists.txt, but when I used the right-click -> New menu, the Text Document was gone. This just sums up my general problem with Win11: small but very annoying things that require registry fixes to disable.
10:04:20 <kuhnovic> To be fair, I just did a windows update and now it seems to be back
10:05:48 <mnhebi> reldred: If you got onedrive enabled, watch out win11 likes to save Documents stuff to onedrive
10:06:26 <reldred> mnhebi: Yes, I do that deliberately.
10:08:09 <LordAro> that's just onedrive, nothing to do with win11
10:08:31 <reldred> Nextcloud does the exact same thing
10:08:46 <reldred> Seems to be anything using the cloud file provider backend
10:09:12 <reldred> Same symptoms on two seperate machines using two seperate cloud backends
10:11:18 <xarick> hi there
10:11:38 <xarick> thx peter1138
10:12:30 <peter1138> I only tested it compiles, I assume it still works.
10:12:38 <xarick> as a thx, here's a PR you could make: `int type` could be renamed to `IndustryType type`<https://github.com/OpenTTD/OpenTTD/blob/master/src/industry_cmd.cpp#L1431>
10:13:17 <peter1138> Why don't you do that?
10:13:27 <xarick> I'm too slow and cumbersome
10:13:55 <peter1138> You get distracted by trying to find everything else that might be the wrong type and then finding a performance bottle neck... ๐Ÿ˜‰
10:20:53 <johnfranklin> Launching Microsoft Office. There is "office plus" advertisements even if I have the license.
10:23:35 <peter1138> Hmm, coming up to nearly 2 years back on Linux full-time.
10:23:59 <peter1138> Though maybe it took some time after installation to actually be using it full time again.
10:24:23 <andythenorth> I have been on Unix for about 23 years or so
10:24:26 <andythenorth> full-time
10:24:52 <LordAro> doesn't count
10:25:05 <peter1138> Linux Is Not UniX
10:25:10 <LordAro> at some point i should fix my bootloader such that i can actually boot into my linux drive
10:25:18 <LordAro> it's been... 9 months?
10:25:49 <andythenorth> what was the Slashdot thing? This might finally be the year of the Linux desktop?
10:26:17 <LordAro> this might happen sooner if i actually upgrade to win11
10:26:21 <peter1138> Unli
10:26:24 <peter1138> kely
10:26:33 <reldred> yฬตฬ’อ„eฬถฬŠฬŠaฬทฬฬพrฬธอ›อ ฬตอ„ฬŒoฬดฬƒฬˆfฬถอ’ the linuxฬธออ‹ ฬทอƒอƒdฬดอ„esktopอฬ‚
10:26:46 <reldred> I might consider it, honestly
10:26:48 <peter1138> Since those days Gnome and Kde are vastly different. Not necessarily better...
10:26:54 <reldred> my portables all run linux
10:27:00 <peter1138> Windows is different but mostly the same.
10:27:01 <reldred> usually ubuntu mate
10:27:16 <andythenorth> which OS has the worst packaging ecosystem?
10:27:18 <andythenorth> macOS?
10:27:20 <reldred> but my home desktop runs win11 as does my work laptop
10:27:23 <peter1138> They experimented with full-screen start menu and then went back. That's about it.
10:27:38 <peter1138> 8.0 -> 8.1 ๐Ÿ™‚
10:29:00 <andythenorth> why are my ears snotty?
10:32:22 <xarick> microsoft should make a linux distro or something
10:32:28 <reldred> they do
10:32:39 <xarick> oh nice, might try it
10:32:41 <reldred> they have a standarized distro they've made for azure
10:32:52 <reldred> yeah it's not really for desktops lol
10:59:02 <kuhnovic> Has anyone ever experienced a situation where the train pathfinder was the bottleneck in a game? We have a caching mechanism in YAPF, which is only used for trains. It does make the train PF significantly faster, about 1.3 - 1.7 times according my measurements. That's all great, but the caching code requires a ton of extra logic and is truly an enigma. I would love to remove it.
10:59:54 <xarick> ^_
11:00:51 <xarick> i dont have an AI that could make 5000 trains ๐Ÿ˜ฆ
11:01:00 <xarick> and build nice networks while at it
11:01:19 <peter1138> I believe that was one of the core features of Yapf.
11:01:39 <peter1138> 1) It has caching so it's faster 2) nobody knows how the caching works
11:02:03 <kuhnovic> That doesn't necessarily make it a good feature ๐Ÿ˜›
11:02:41 <xarick> i might "persuade" AAAHogEx to make 5000 trains, maybe i should try the newer versions
11:04:02 <kuhnovic> I usually use large maps from one of the online servers to test these type of things, they tend to contains mostly trains
11:11:36 <peter1138> I think reducing performance to avoid complexity is not really wanted.
11:11:51 <peter1138> If you can reduce complexity and increase performance that's definitely a win.
11:13:16 <peter1138> Most MP games are 'average' and not useful for much performance testing beyond normal case
11:13:41 <_jgr_> Does really no one know how it works? Caching things outside the signal lookahead distance does not seem like it should have such a big impact on the overall understanding of what is going on
11:14:20 <peter1138> They're useful to see if things are better or worse, but not 'is it worse but still acceptable', at least when specifically dealing with performance.
11:17:33 <xarick> tgp using floats and doubles.... i just realized something
11:17:55 <xarick> reproducing the same map between openttd builds might not work
11:19:26 <peter1138> There's no that much difference.
11:19:55 <peter1138> It's not important for landscape generation. It is important when you need game-state to be 100% in sync.
11:20:10 <xarick> so far the maps have matched between os'es
11:20:13 <peter1138> (And even then, using floats/doubles would "probably be fine", buy why risk it)
11:20:18 <xarick> not sure if lucky
11:20:26 <xarick> of they follow some standards
11:27:57 <xarick> there seems to be no performance loss with 13074, comparing to master
11:28:21 <xarick> but i dont feel like testing indepth
11:29:50 <peter1138> There's a bug in it though.
11:29:55 <xarick> crap
11:29:56 <xarick> ๐Ÿ˜ฆ
11:30:06 <peter1138> A space where there shouldn't be a space ๐Ÿ™‚
11:30:19 <peter1138> I would not expect any performance loss with it.
11:30:58 <peter1138> If anything the lack of function pointer should be a benefit, but if it's not a hot-path then it's not going to make a difference.
11:40:28 <peter1138> As a function pointer, the existing `inline` makes no difference.
11:41:05 <peter1138> As a functor it can actually be inlined.
11:41:39 <kuhnovic> _jgr_: The confusing part is knowing when to invalidate the cache. This also seems to be done somewhat arbitrarily. The YapfNotifyTrackLayoutChange function takes a tile a and trackdir, but these are ignored in all use cases. So one layout change essentially invalidates the entire cache.
11:41:51 <kuhnovic> (there is more stuff that is confusing)
11:48:31 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #13074: Codechange: Use template struct for Kdtree XYFunc. https://github.com/OpenTTD/OpenTTD/pull/13074#issuecomment-2467983369
11:51:45 <LordAro> peter1138: goodness, a whole 18 more symbols
11:52:30 <peter1138> I'm just highlighting what changes, not whether it's a problem or not ๐Ÿ™‚
11:52:37 <LordAro> :p
11:53:55 <peter1138> And someoneโ„ข might complain that compilation becomes even slower.
11:55:02 <truebrain> kuhnovic: why on earth would you want to do that? That sounds painful ๐Ÿ˜›
11:55:20 <truebrain> use a code editor or something ๐Ÿ™‚
11:55:40 <kuhnovic> It was the root cmake file, chicken-and-egg-situation ๐Ÿ˜‰
11:56:08 <kuhnovic> And I had the contents of it on the clipboard
11:56:36 <peter1138> Is that a VS thing? Cos with VS Code the file is... just a file.
11:57:14 <kuhnovic> With VS you need a solution. Cmake generates that solution. First you need a cmake file.
11:57:19 <truebrain> kuhnovic: but that is like saying Linux is terrible because `vim` is impossible to use
11:57:39 <peter1138> Hehe
11:58:01 <peter1138> ESC :q, easy.
11:58:07 <truebrain> I expected you had actual reasons; not just 1 bad experience with a minor subsystem ๐Ÿ˜› ๐Ÿ˜›
11:58:08 <kuhnovic> It's just that windows decides that certain things are no longer convenient for me. Don't tell me what to do, or not to do ๐Ÿ˜›
11:58:31 <truebrain> QUICK! WHAT IS THE XKCD LINK!
11:58:36 <truebrain> spaceheaters .. they are everywhere ๐Ÿ˜›
11:58:55 <kuhnovic> Yup, this is definitely one of those ๐Ÿ˜›
11:59:21 <kuhnovic> I don't have one big gripe with win11, just a lot of smaller ones. And i'm just venting here :p
11:59:32 <truebrain> Vent away!
11:59:37 <truebrain> I could use the fresh air ๐Ÿ˜›
12:03:50 <kuhnovic> I'm going to vent in the form of lunch
12:11:53 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305505275771355187/image.png?ex=67334608&is=6731f488&hm=920e82ea1d3ec4c694494a69186bf8d5a709bc4424c9eb3a809a57b35fba35a6&
12:12:16 <xarick> halp
12:12:32 <xarick> I want an array of IndustryKdtree's
12:13:00 <_jgr_> I'm not sure that venting is the ideal verb for your lunch ๐Ÿ˜›
12:13:08 <peter1138> `std::array<IndustryKdtree, NUM_INDUSTRYTYPES> _industry_kdtrees{};`
12:13:25 <xarick> lets try
12:13:53 <peter1138> (And yes, use `NUM_INDUSTRYTYPES`, not `INVALID_INDUSTRYTYPE`)
12:14:15 <xarick> i want 240 types + alltypes
12:14:57 <xarick> 241?
12:14:58 <peter1138> Use separate instance.
12:15:47 <peter1138> `INVALID_INDUSTRYTYPE` has the same value as `NUM_INDUSTRYTYPES`, but only `NUM_INDUSTRYTYPES` has the correct meaning here.
12:24:32 <xarick> it still doesn't build ๐Ÿ˜ฆ
12:25:25 <xarick> nevermind, I got it!
12:25:55 <xarick> i was using NUM_INDUSTRYTILES in one place
12:32:45 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305510529040777358/image.png?ex=67334aed&is=6731f96d&hm=57eb6b550be05cc121c23d6b3aea49f836efaae4f62b1321bb7eb2bced77ff21&
12:32:45 <xarick> cool, it works
12:34:16 *** exceptik has joined #openttd
12:34:16 <exceptik> Don't forget to reserve vector sizes
12:38:25 <peter1138> If you know the size in advance, sure.
12:40:50 <peter1138> It's known for the global case, but not for the per-type case.
13:01:43 <_glx_> This array is a waste of space for common case
13:02:31 <_glx_> A map might make more sense
13:08:31 *** Flygon has quit IRC (Read error: Connection reset by peer)
13:09:27 <_jgr_> The size of an empty kdtree container is not so large that this is a problem
13:11:13 <_jgr_> The extra space used by maps largely negates the space saving
13:16:05 <andythenorth> we need to discuss lunch
13:19:10 <LordAro> i'd like to second that
13:22:46 <peter1138> I agree with JGRPP. kdtree is 2 `vector`s and 2 `size_t`s. 64 bytes. It's not nothing but it's likely less than dealing with a (unordered) map.
13:24:42 <peter1138> It could potentially be a std::unique_ptr<IndustryKdtree> and created on first use.
13:25:43 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305523859478413343/image.png?ex=67335757&is=673205d7&hm=d923efc14ff0c1d53147a1cb337c5e6d2ce969a0aa491de698d23f1cd1f62fa8&
13:25:43 <xarick> this is still slightly ugly... because it has to exlclude itself from the search
13:26:02 <xarick> oh, crap, bad iid
13:26:26 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305524039082704956/image.png?ex=67335782&is=67320602&hm=62e54c873bb555bbca469966852362797d454ce764dd19630d1e625054697183&
13:27:35 <peter1138> Oh dear. That's not really going to work then.
13:28:31 <peter1138> In the location check var isn't available anyway, is it?
13:29:31 <peter1138> Or is there a fake industry created. Hmm.
13:30:03 <xarick> it has a *current so I assume it already exists
13:30:05 <peter1138> Ah yes, a fake industry.
13:30:21 <peter1138> In this case the industry's index is INVALID_INDUSTRY.
13:30:53 <peter1138> For CBID_INDUSTRY_LOCATION, as long as you never add that to the kdtree it won't need to be excluded...
13:31:05 <peter1138> But for regular calls where the industry does exist it does matter.
13:31:40 <peter1138> Does kdtree have a "closest tile that isn't current tile" search?
13:32:03 <xarick> i don't know
13:37:50 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305526906682347530/image.png?ex=67335a2e&is=673208ae&hm=bd5783b946a55dbc5f2b629797f3524fac8848079e541db302de1a26be82ddb9&
13:37:50 <xarick> hmm i failed where
13:39:57 <xarick> oh,
13:40:23 <peter1138> Impressive.
13:41:06 <xarick> MapNewGRFIndustryType(parameter, indspec->grf_prop.grffile->grfid) this thing returned 240
13:41:15 <xarick> which is ... invalid
13:42:22 <xarick> maybe ez to fix, let me take a look how it was handled for invalid types
13:43:34 <xarick> (i->type != type
13:44:19 <xarick> oh, it means.... "any type" apparently
13:45:56 <peter1138> Having both `INVALID_INDUSTRYTPE` and `IT_INVALID` is a bit... what.
13:46:04 <peter1138> Defined in different places, and different values.
13:47:27 <xarick> 240 and 255? hmm funny
13:47:50 <xarick> I accidentaly stepped on a bug?
13:51:49 <_glx_> no, you most likely assumed incorrect stuff
13:53:26 <_glx_> invalid is not always num+1
13:56:36 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305531628579454996/image.png?ex=67335e93&is=67320d13&hm=804bb0ae7f5cb124f51a920f58051027cfdfbc197281846917729e81e9b81d45&
13:56:43 <xarick> what is a 0x64
13:56:51 <xarick> newgrf is so difficult
14:00:14 <_glx_> 0x64 is https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/Industries#Distance_of_nearest_industry_with_given_type_.2864.29
14:00:28 <_glx_> nothing hard in newgrf
14:01:22 <truebrain> There has to be a "that's what she said" joke here ...
14:06:23 <xarick> hmm 240
14:30:29 <xarick> current->index == 65535
14:30:33 <xarick> ๐Ÿ˜
14:51:03 <peter1138> That's the fake industry when testing the location callback.
14:51:20 <peter1138> That one should not be added to the Kdtree.
14:53:32 <xarick> I see
14:54:04 <xarick> Count() > 0 then
14:54:12 <xarick> it's not in the tree yet
14:57:09 <xarick> kdtree can't be called for this
14:57:17 <xarick> oh boy...
15:02:42 <xarick> before I test for performance, I rather check if it's outputting same results
15:13:26 *** nielsm has joined #openttd
15:45:50 <xarick> is GetClosestIndustry called outside industry generation?
15:46:06 <xarick> i guess it may be, but haven't found any evidence yet
16:01:59 <peter1138> It could be, the variable exists.
16:57:13 <_glx_> and it's also used for var68
16:57:23 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305577123934896258/image.png?ex=673388f2&is=67323772&hm=6b3aed0d10f5196ba4c02db5d9824cfb36ce7d68763b23214615fa745acab195&
16:57:47 <xarick> master vs kdtree
16:59:05 <xarick> 1.1 CheckIfFarEnoughFromConflictingIndustry and 3. CheckIfCallBackAllowsCreation
16:59:15 <peter1138> Test 2. became more expensive
16:59:52 <xarick> let me look at them
17:00:09 *** gelignite has joined #openttd
17:00:29 <xarick> CheckIfIndustryTilesAreFree, i didn't look at this one
17:00:30 <peter1138> Is this testing map generation with the same seed?
17:00:34 <xarick> yes
17:01:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305578266974748702/image.png?ex=67338a03&is=67323883&hm=c3c36e7b2b13eb67faee11825af21a51aa20fc9ddfda1d8ff93be9e798df0745&
17:04:41 <xarick> gonna repeat
17:04:48 <xarick> windows might be influencing
17:07:19 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305579625338114273/image.png?ex=67338b47&is=673239c7&hm=290517bd5a5c5e411231029fa437236f63245208a2ba1ad8775d26bf5c5a44db&
17:08:33 <xarick> strange, what could there be that makes step 2 slower
17:12:28 <peter1138> Maybe generation isn't the same.
17:19:20 *** HerzogDeXtEr has joined #openttd
17:28:14 *** Wolf01 has joined #openttd
17:35:02 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13074: Codechange: Use template struct for Kdtree XYFunc. https://github.com/OpenTTD/OpenTTD/pull/13074
17:45:09 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13073: Add: NewGRF Badges feature https://github.com/OpenTTD/OpenTTD/pull/13073
18:02:04 *** michi_cc[d] has joined #openttd
18:02:04 <michi_cc[d]> _jgr_: I think itโ€™s almost more like a meme by now. The actual algorithm is bog standard A*. The only uncommon thing is its use of templates composition to build the actual implementation, but memorizing the โ€žingredientsโ€œ isnโ€™t that hard either.
18:08:05 <peter1138> Oops
18:08:45 <peter1138> When squashing a load of commits, remember to not squash the hacky debug testing commits. Pom-te-pom
18:09:13 <LordAro> done that
18:32:25 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13073: Add: NewGRF Badges feature https://github.com/OpenTTD/OpenTTD/pull/13073
18:38:11 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305602494591799396/image.png?ex=6733a093&is=67324f13&hm=230bf0649f1948965bf6d536402c372e06d9ef9a81b7a751100c8dd23d766397&
18:38:11 <xarick> heh... I suspect it's the TicToc
18:38:24 <xarick> the bloat is measurable
18:39:54 <peter1138> As we keep saying, it's only useful on something that takes an appreciable amount of time individually.
18:42:34 <xarick> let's remove all TicTocs
18:42:39 <xarick> except the main one
18:47:18 <_glx_> truebrain: it seems bananas server is having issues, web frontend is super slow and ingame fails to connect
18:54:20 <truebrain> let's see what the server is up to
18:55:24 <truebrain> ghehe, "funny", the cluster still thinks some dead servers are active
18:55:27 <truebrain> which is impressive, ofc ๐Ÿ™‚
19:01:51 <xarick> PR?
19:01:51 <xarick> <https://github.com/OpenTTD/OpenTTD/compare/master...SamuXarick:OpenTTD:kdtree-for-industries>
19:08:17 <truebrain> _glx_: frontend should be fixed now; but in-game I have to check out, as that is totally unrelated to the issue I was seeing
19:11:55 <truebrain> okay, indeed unrelated. And an issue for over 3 hours already ๐Ÿ˜›
19:12:30 <truebrain> ```2024-11-11 19:12:17 INFO [__main__] Public IPs detected:
19:12:30 <truebrain> 2024-11-11 19:12:17 INFO [__main__] ```
19:12:34 <truebrain> yes, it detect an empty list ๐Ÿ™‚
19:15:41 <michi_cc[d]> Has somebody stolen your public IPs? ๐Ÿ˜›
19:16:05 <truebrain> what is especially weird, is that it stopped working 3 hours ago .. like .. I wasn't touching anything .. let's see why it went bonkers
19:20:46 <truebrain> lolz; OCI removed some essential tags from some instances
19:20:49 <truebrain> why would it do that?!
19:20:49 <truebrain> lol
19:24:14 <truebrain> owh, no, worse: they are still there, just no longer in the API result
19:24:17 <truebrain> weird
19:33:28 <truebrain> ah, okay, was chasing down the wrong rabbit. Something in Nomad itself is still funky ... hmm
19:34:15 <truebrain> okay, piecing it together ...
19:34:25 <truebrain> 24h after my maintenance it garbage-collected some stuff
19:34:33 <truebrain> but because of some weirdness, this removed a service that it should not remove
19:35:00 <truebrain> okay, DNS entries are repopulated again. But as it was a negative DNS result, it takes a while for DNS caches to purge those results
19:35:04 <truebrain> so things should slowly recover
19:35:06 <truebrain> just .. slowly
19:35:35 <truebrain> and tnx again for the poke _glx_ ๐Ÿ™‚
19:42:27 <truebrain> Let's hope it still works in 24h! Otherwise I will just tear down the cluster and rebuild it
19:43:48 <xarick> ratsa!
19:43:59 <xarick> master vs kdtree mismatch
19:47:27 <xarick> where did I fail ๐Ÿ˜ฎ
19:49:49 <xarick> okay I guess I know where
19:52:53 <xarick> I am dumb <https://github.com/OpenTTD/OpenTTD/compare/master...SamuXarick:OpenTTD:kdtree-for-industries#diff-ce2189a945a85c2aec8e107e2845ab769d2f107f4a22287366a972caf7d796aeR1723-R1724>
19:53:10 <xarick> no wonder it was hyper mega fast!.... it was doing nothing
19:54:20 <peter1138> Well, let's not PR that then ๐Ÿ˜‰
19:54:28 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305621689631248444/image.png?ex=6733b274&is=673260f4&hm=759e1dd5f4da0f0edb7bffca89844856c0501b113bce16f8d9cc999837804b2f&
19:54:28 <xarick> now it's better
19:54:39 *** gelignite has quit IRC (Read error: Connection reset by peer)
19:55:48 <xarick> i didn't have static initially
19:56:05 <xarick> then I added it without much thought
19:56:12 <xarick> and that's where I fail
19:59:40 *** gelignite has joined #openttd
20:27:04 <DorpsGek> [OpenTTD/OpenTTD] anatolyeltsov opened issue #13075: [Bug]: Industry production graph x-axis doesn't correlate with graph's data in wallclock mode https://github.com/OpenTTD/OpenTTD/issues/13075
20:28:11 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305630174175563776/2024-11-11_20-25-20.mp4?ex=6733ba5a&is=673268da&hm=3a8a4b86bf44e7fe24e655576d9d4087b75f9cdc9e9f84e9fc736c66749841e1&
20:28:11 <xarick> ๐Ÿ™‚
20:41:49 <xarick> wow... with FIRS is like 4 times faster
20:44:15 *** Flygon has joined #openttd
20:53:49 <DorpsGek> [OpenTTD/OpenTTD] PeterN updated pull request #13073: Add: NewGRF Badges feature https://github.com/OpenTTD/OpenTTD/pull/13073
20:54:58 <peter1138> 4 times faster during the game, or just generation?
20:56:31 <peter1138> It looks like it's about twice as fast but of course the existing algorithm keeps getting slower and slower.
20:56:58 <peter1138> Like you see 11000 vs 19000 at one point.
20:59:49 <peter1138> Still need to split 13073 up a bit.
21:00:13 <peter1138> I got fed up with having to rewrite things through all the different commits :p
21:00:24 <peter1138> If only I had a good design.
21:02:19 *** wensimehrp has joined #openttd
21:02:19 <wensimehrp> Badges for badgers
21:02:36 <peter1138> Also the "B" button is just a placeholder, heh
21:04:31 <truebrain> _glx_: I read back the entitlement was high this evening ๐Ÿ™‚ I like your easy-answer ๐Ÿ˜›
21:05:11 <_glx_> yeah I didn't want to name drop ๐Ÿ˜‰
21:05:45 <truebrain> it was an amusing readback ๐Ÿ™‚
21:06:01 <truebrain> I always imagine someone barging into a room of a place they have never been, and start yelling
21:06:53 <peter1138> Uh oh
21:07:44 <truebrain> nothing to uh-oh ๐Ÿ™‚ glx handled it like a champ ๐Ÿ™‚
21:07:58 <peter1138> I know but I missed whatever it was.
21:11:04 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:11:06 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305640975804141670/2024-11-11_21-05-241.mp4?ex=6733c46a&is=673272ea&hm=3839c23f7dcda084a3016ca4b58ae03bc8a5068b953215ff3b98810e3693de1b&
21:11:06 <xarick> Generating FIRS 4.15.1
21:11:56 <peter1138> FIRS 5 steeltown
21:12:15 <xarick> FIRS 5
21:12:16 <xarick> ?
21:13:36 <xarick> oh, it's a beta
21:13:39 <xarick> ok let me try that one
21:15:04 <xarick> which climate for steeltown?
21:25:40 <xarick> steeltown wasn't that slow
21:25:45 <xarick> maybe wrong climate
21:29:15 <_glx_> and you selected steel town economy in settings ?
21:36:11 <xarick> yes
21:36:19 <xarick> which climate is it worst?
21:36:41 <peter1138> I doubt it matters.
21:39:26 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305648104380563581/2024-11-11_21-37-27.mp4?ex=6733cb0d&is=6732798d&hm=e7df7f39d77c4b36153c19e42373d6c6640dcd012c6aabbe6569f0c758fc8b4f&
21:39:26 <xarick> FIRS 5.0.0-beta2 Steeltown in Arctic
21:40:33 <xarick> not terribly slow compared to the other test
21:41:10 *** gelignite has quit IRC (Quit: Stay safe!)
21:46:13 <peter1138> Ok, I entered a room with 12 megaspheres. This is going to hurt, I think.
21:47:47 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305650205156311060/2024-11-11_21-31-491.mp4?ex=6733cd02&is=67327b82&hm=823a1f385b57d2d1c41fbc1c3ad073bb2ba6ea0779dd249fd06ccd4a829b37d2&
21:47:47 <xarick> FIRS 5.0.0-beta2 Arctic Basic in Arctic
21:47:50 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:56:35 <xarick> FindTownForIndustry I think I can speed this one up too
21:56:50 <xarick> let me see
21:57:41 <peter1138> That already uses the town kdtree.
21:58:31 <xarick> yes, but then also iterates industries
22:06:52 <andythenorth> FIRS makes the game slow still?
22:06:55 <andythenorth> silly grf
22:07:47 <_glx_> it's just about mapgen here
22:09:23 <andythenorth> naptime?
22:19:24 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:24:29 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305659444599980102/image.png?ex=6733d59d&is=6732841d&hm=f515471fedb2e2d32a4a65d2b2996ecad79f3fcee0641a6e990582210bb92fa5&
22:24:29 <xarick> oops
22:26:53 <xarick> i need geometry skills
22:29:22 <xarick> if I know the ClosestTownFromTile, I can extract the distance manhattan to it, then use kdtree.FindContained with this distance to get all industries in the radius, and test each industry if they have the same town.
22:29:34 <xarick> i think
22:30:01 <xarick> probably wrong somewhere...
22:42:33 <kuhnovic> Searching with a limited manhattan distance will give you a diamond shaped area around the start of the search
22:43:14 <kuhnovic> If you want a circle you'll have to use distance squared < radius squared
22:45:39 <xarick> I want DistanceManhattan
23:05:36 <xarick> my geometry skills are bad
23:11:04 <xarick> I can't do Kdtree magic here
23:12:06 <xarick> I can however iterate over the industry_type_kdtree of this industry type to check if it's unique
23:12:42 <xarick> it's less industries to search for, but not quite what I wanted
23:19:47 <xarick> nevermind:(
23:21:49 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:40:12 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305678497804582963/image.png?ex=6733e75c&is=673295dc&hm=7a5a6081bc5701017b7fd81cfb396c54c3d23e1458375f550edd042bd4b1833d&
23:40:12 <xarick> meh...
23:40:16 <xarick> not impressive
23:46:13 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1305680013214879906/image.png?ex=6733e8c5&is=67329745&hm=7c0bcad185b847c70e4b47c77ad42733c8fc7f5a928bfb3f409043669036564d&
23:46:13 <xarick> well... still faster
23:46:21 <xarick> the one on the right
23:49:52 <xarick> gotta go, take a look, cyas https://github.com/SamuXarick/OpenTTD/compare/kdtree-for-industries
23:58:35 *** TinoDidriksen has quit IRC (Read error: Connection reset by peer)
23:59:05 *** TinoDidriksen has joined #openttd
23:59:36 *** TinoDidriksen is now known as Guest9135