Time |
Nick |
Message |
00:04 |
|
calcul0n joined #minetest-dev |
00:05 |
|
Foz joined #minetest-dev |
00:06 |
|
Ruslan1 joined #minetest-dev |
00:19 |
|
reductum joined #minetest-dev |
00:21 |
|
ssieb joined #minetest-dev |
00:24 |
|
Foz joined #minetest-dev |
01:07 |
|
Cornelia joined #minetest-dev |
01:16 |
|
GreenDimond joined #minetest-dev |
01:31 |
|
benrob0329 joined #minetest-dev |
01:50 |
|
Miner_48er joined #minetest-dev |
02:00 |
ANAND |
For #7587, I'm planning to run the on_wielditem_change callback if the item has been selected for at least n milliseconds, so as to not trigger the wielditem change callbacks for all items in the middle when using the mouse wheel. Does MT use some sort of a cross-platform timer class or library elsewhere in the code? |
02:00 |
ShadowBot |
https://github.com/minetest/minetest/issues/7587 -- Implement on_wielditem_change callback registration by ClobberXD |
02:02 |
ANAND |
Hmm, it just occured to me that a ton of things make use of timers like ABMs, node-timers, etc. |
02:03 |
ANAND |
I'll take a look at how they're implemented :) |
02:11 |
|
diemartin joined #minetest-dev |
02:22 |
ANAND |
Both ABMs and NodeTimers are too complicated :/ |
02:26 |
ANAND |
Aha, found a class called TimeTaker while digging into the profiler :D |
03:06 |
|
Unarelith joined #minetest-dev |
03:13 |
|
Foz joined #minetest-dev |
03:31 |
|
benrob0329 joined #minetest-dev |
04:17 |
ANAND |
There's also another class IntervalLimiter which is used in PlayerSAO for things like breath timer and node damage timer. |
04:18 |
sofar |
if you're doing things in C++ you should never use ABM or NodeTimers, those are for Lua only |
04:18 |
sofar |
the IntervalLimiter class sounds like what you want |
04:31 |
|
GreenDimond joined #minetest-dev |
04:41 |
|
argyle77 joined #minetest-dev |
04:49 |
ANAND |
I was trying to see what timer MT uses for implementing ABMs and NodeTimers. I wasn't going to use ABMs and NodeTimers for this :P |
04:50 |
ANAND |
TimeTaker seems to suit me better, IntervalLimiter seems to be for running callbacks at regular intervals. |
04:58 |
|
argyle77 joined #minetest-dev |
05:02 |
|
reductum joined #minetest-dev |
05:07 |
ANAND |
Hmm... IntervalLimiter might actually be better that TimeTaker, as I'm planning to check for the time each step. |
05:07 |
ANAND |
better than* |
05:08 |
|
GreenDimond joined #minetest-dev |
06:03 |
|
GreenDimond joined #minetest-dev |
06:17 |
|
kaeza joined #minetest-dev |
06:18 |
|
benrob0329 joined #minetest-dev |
08:54 |
|
bobby joined #minetest-dev |
09:02 |
|
bobby joined #minetest-dev |
09:42 |
|
kaeza joined #minetest-dev |
09:53 |
|
Unarelith joined #minetest-dev |
10:38 |
|
Beton joined #minetest-dev |
11:42 |
|
Fixer joined #minetest-dev |
11:43 |
|
YuGiOhJCJ joined #minetest-dev |
11:45 |
|
calcul0n joined #minetest-dev |
12:16 |
|
kaeza joined #minetest-dev |
13:21 |
|
nerzhul joined #minetest-dev |
13:22 |
|
Sokomine_ joined #minetest-dev |
13:26 |
|
Unarelith joined #minetest-dev |
14:46 |
|
entuland joined #minetest-dev |
15:21 |
|
kaeza joined #minetest-dev |
15:41 |
|
kaeza joined #minetest-dev |
15:49 |
|
benrob0329 joined #minetest-dev |
16:16 |
|
Wuzzy joined #minetest-dev |
16:53 |
ANAND |
#7587 is ready for testing and review |
16:53 |
ShadowBot |
https://github.com/minetest/minetest/issues/7587 -- Implement on_wielditem_change callback registration by ClobberXD |
16:54 |
|
Beton_ joined #minetest-dev |
16:54 |
ANAND |
I know a couple of my PR numbers by heart (like #7557) :) |
16:54 |
ShadowBot |
https://github.com/minetest/minetest/issues/7557 -- Expose player FOV to Lua API by ClobberXD |
17:20 |
|
Wuzzy joined #minetest-dev |
18:28 |
|
calcul0n joined #minetest-dev |
18:34 |
|
argyle77 joined #minetest-dev |
18:37 |
|
ssieb joined #minetest-dev |
19:13 |
|
GreenDimond joined #minetest-dev |
19:55 |
|
GreenDimond joined #minetest-dev |
21:13 |
|
Wuzzy2 joined #minetest-dev |
22:48 |
|
YuGiOhJCJ joined #minetest-dev |
23:07 |
|
VargaD joined #minetest-dev |
23:26 |
|
argyle77 joined #minetest-dev |
23:56 |
|
VargaD joined #minetest-dev |