Luanti logo

IRC log for #luanti, 2025-11-22

| Channels | #luanti index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:00 fluxionary joined #luanti
00:03 ireallyhateirc accodring to profiling I've just done checking block status for all mapblocks in the cube with side 2*view_range takes about 1000 ms
00:07 ireallyhateirc this will be me and my wishes again but I hope https://github.com/luanti-org/luanti/issues/14723#issuecomment-2726413946 will get implemented at some point and that it will be faster than the above bruteforce method
00:24 sfan5 help my by figuring out the edge cases
00:24 sfan5 me*
00:25 MTDiscord <wsor4035> would such an api have stupid time budgets like the current ones do?
00:28 ireallyhateirc sfan5, you mean me? I could think about the use cases and such but I have no idea how the engine works under the hood. If that's still fine by you then I can help
00:29 sfan5 any input on this issue is better than nothing
00:30 ireallyhateirc your proposed API looks good enough to me, I just need a low-level thing and would be great if it was faster than just bruteforcing it
00:31 sfan5 i mean like: do you need a callback? does it need to be instantly after block activation? or would it suffice if it was once per server step?
00:33 ireallyhateirc it d oesn't need to be instantly after block activation but would be nice if the status of the block did not change in the meantime
00:34 ireallyhateirc my use case is: 1. get info that a block was loaded or activated 2. check some data for the chunk in mod storage 3. process the chunk with a voxel manipulator
00:35 ireallyhateirc I mean mapblocks, not chunks
00:35 sfan5 "info" as in "a notification"
00:35 sfan5 ?
00:36 ireallyhateirc a notification or a callback, in the end just a table with a list of loaded/active blocks would do as long as it's up to date
00:37 ireallyhateirc so either callbacks for loading and unloading - then I can track the status myself
00:37 ireallyhateirc or a table with loaded/adtive/etc. block positions/hashes that manages itself
00:37 ireallyhateirc by manages itself I mean is updated when a block gets unloaded
00:38 ireallyhateirc So I just want to get a list of loaded/active mapblocks to process them
00:38 sfan5 having only a table sounds like a smart solution here but then each mod would have the overhead of tracking changes
00:39 ireallyhateirc I'm desperate, I'd take anything that isn't bruteforce
00:39 ireallyhateirc this is a low-level API anyway which would be used mostly by people unhappy with LBMs and ABMs
00:40 ireallyhateirc a callback would be perhaps too demanding performance-wise
00:41 ireallyhateirc while a table gives you the freedom to execute your code whenever you want
00:41 sfan5 a callback does too, and you aren't forced to track changes yourself
00:41 sfan5 but I get it
00:41 sfan5 we could really start with just a table and then see
00:42 ireallyhateirc just a table would be more than enough
01:03 SFENCE joined #luanti
01:13 ireallyhateirc sfan5, either way it's callbacks or a table or both, but anything would be an improvement over what we have now
01:18 [MatrxMT] <repetitivestrain> Well mineclonia's spawning system could benefit from a table of active MapBlocks, as it must iterate through them, which at present is achieved by iterating through an active_block_range^3 area around each connected player.
02:07 FeXoR joined #luanti
02:15 luk3yx joined #luanti
02:33 chilledfrogs joined #luanti
02:35 FeXoR joined #luanti
04:19 SFENCE joined #luanti
04:21 tzenfore joined #luanti
04:23 Trifton joined #luanti
05:00 MTDiscord joined #luanti
05:08 mrcheese joined #luanti
06:22 SwissalpS joined #luanti
06:29 YuGiOhJCJ joined #luanti
06:35 SFENCE joined #luanti
07:05 SFENCE joined #luanti
07:10 MTDiscord1 joined #luanti
07:14 SwissalpS joined #luanti
07:38 SpaceManiac joined #luanti
08:19 mrcheese joined #luanti
08:34 mrcheese joined #luanti
08:35 mrcheese_ joined #luanti
08:38 ___nick___ joined #luanti
08:47 MinetestBot [git] siliconsniffer -> luanti-org/luanti: Add exit confirmation dialog on ESC in main menu (#16164) b4aa73d https://github.com/luanti-org/luanti/commit/b4aa73df70be0146f861ccd318047e51ece599b9 (2025-11-22T08:46:37Z)
08:47 MinetestBot [git] fetsorn -> luanti-org/luanti: Option to make sky stars deterministic (#16529) d959692 https://github.com/luanti-org/luanti/commit/d95969296783d0bad79c8b760958e6f1fe4e2549 (2025-11-22T08:47:15Z)
08:47 MinetestBot [git] SmallJoker -> luanti-org/luanti: IrrlichtMt: Implement Page Up/Down navigation on edit boxes (#16654) 5f49deb https://github.com/luanti-org/luanti/commit/5f49deb2398d97b6624100572d22751484995443 (2025-11-22T08:47:38Z)
08:49 MinetestBot [git] a-bad-dev -> luanti-org/luanti: Fix typo in function name (#16684) 05f161c https://github.com/luanti-org/luanti/commit/05f161cf9c9e87d4be89caa36c397ca9144a2080 (2025-11-22T08:48:17Z)
09:12 mrcheese joined #luanti
09:21 SFENCE joined #luanti
09:54 SFENCE joined #luanti
10:00 jaca122 joined #luanti
10:22 SFENCE joined #luanti
10:39 SFENCE joined #luanti
11:04 est31 joined #luanti
11:16 mrkubax10 joined #luanti
11:21 SFENCE joined #luanti
11:56 SFENCE joined #luanti
12:59 ireallyhateirc joined #luanti
13:18 SFENCE joined #luanti
13:30 SFENCE joined #luanti
13:43 mazes_83 joined #luanti
14:09 PoochInquisitor joined #luanti
14:16 SFENCE joined #luanti
14:31 erle joined #luanti
14:36 SFENCE joined #luanti
14:55 Meli joined #luanti
14:56 silverwolf73828 joined #luanti
15:38 tzenfore joined #luanti
15:56 SFENCE joined #luanti
16:14 mrkubax10 joined #luanti
16:46 tzenfore joined #luanti
18:09 m33 joined #luanti
18:13 mrkubax10 joined #luanti
18:25 tzenfore joined #luanti
18:31 Talkless joined #luanti
20:17 mrcheese joined #luanti
20:17 mrcheese joined #luanti
20:51 SFENCE joined #luanti
21:26 SFENCE joined #luanti
21:37 user333_ so thats why my file server was misbehaving
21:37 user333_ someone unplugged my external hard drive
22:02 SFENCE joined #luanti
22:20 user333_ joined #luanti
22:32 mazes_80 joined #luanti
22:37 SFENCE joined #luanti
22:55 SFENCE joined #luanti
23:32 panwolfram joined #luanti
23:38 crazylad joined #luanti
23:54 crazylad joined #luanti
23:55 crazylad joined #luanti

| Channels | #luanti index | Today | | Google Search | Plaintext