Page 1 of 1

Recommended maximum tool range?

PostPosted: Sun Jul 24, 2016 17:04
by Wuzzy
What's the recommendation for the maximum range of tools and other items?
The range determines how far you can use the tool to punch, dig, etc.
I noticed if you use very large values for range, Minetest slows down significantly while you wield the item. So I wonder if there is some guideline I could use. For this, I need answers from other people as my own machine alone does not tell me much about other people's machines. ;-)

On my machine (Laptop: Dell Inspiron 15) a range of 10 is still relatively safe (60 FPS), Minetest becomes notably slower at a range of 50 (35-40 FPS) and pretty much unplayable at a range of 200 (5-10 FPS).

I'd also like to hear input from the Minetest developers.

Re: Recommended maximum tool range?

PostPosted: Sun Jul 24, 2016 18:25
by rubenwardy
There's are currently two pull requests pending that both implement a similar optimisation. When they are merged, you'll be able to set the range to hundreds with no problems.

Re: Recommended maximum tool range?

PostPosted: Tue Jul 26, 2016 09:45
by azekill_DIABLO
yeah! a giant star fury that kills everyone in the line to 40000 meters!

Re: Recommended maximum tool range?

PostPosted: Tue Jul 26, 2016 10:00
by Krock
As rubenwardy already mentioned, these pulls try to reach the same thing. To make it more efficient.
There's a huge difference in the CPU load with and without the pull, can be seen here. That's also the reason why I compile that commit into my Win32 builds until one of these two pulls gets merged into the Minetest core.

Re: Recommended maximum tool range?

PostPosted: Sun Nov 13, 2016 08:00
by ErrorNull
is it possible to i change the current tool range for tools and even for an empty hand punch to be shorter range? Is that possible?

Re: Recommended maximum tool range?

PostPosted: Sun Nov 13, 2016 12:22
by kaeza
ErrorNull wrote:is it possible to i change the current tool range for tools and even for an empty hand punch to be shorter range? Is that possible?

See how e.g. creative does it.

Re: Recommended maximum tool range?

PostPosted: Sun Nov 13, 2016 13:45
by ErrorNull
awesome! thanks kaeza.