MT-CTF / capturetheflag

Capture the Flag game using the Minetest Voxel Engine
https://ctf.rubenwardy.com
80 stars 85 forks source link

Add mushroom farming #1304

Open farooqkz opened 3 weeks ago

farooqkz commented 3 weeks ago

This PR is a draft because I think it needs more polish. Or it might not need. Reviews are very welcome!

LoneWolfHT commented 2 weeks ago

What do you get if you time the per-step lua time with (endtime - starttime) / 1e6 using minetest.get_us_time() for the times; Placing a lot of mushrooms to test with?

farooqkz commented 1 week ago

What do you get if you time the per-step lua time with (endtime - starttime) / 1e6 using minetest.get_us_time() for the times; Placing a lot of mushrooms to test with?

Not sure what you mean. Are you suggesting using this method instead of the current method with globalstep? BTW, This PR spawns mushrooms anywhere dark enough. So you don't need mushrooms to farm mushrooms. I think this is better since selfish players could prevent others from farming mushroom. If unsure, we can do a poll.

LoneWolfHT commented 1 week ago

Not sure what you mean. Are you suggesting using this method instead of the current method with globalstep?

What I posted is how you measure how much lag it's causing, by timing how long it takes to get from the start of the globalstep to the end of it