Difference between revisions of "Debug"

From Luanti Wiki
Jump to navigation Jump to search
m (→‎Debug info: roughly spoken ...)
(Replaced content with "[https://dev.luanti.org/debug/ This page has moved to the Luanti Developer Wiki]")
Tag: Replaced
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
[https://dev.luanti.org/debug/ This page has moved to the Luanti Developer Wiki]
{{incomplete}}
 
The '''debug screen''' can be access by pressing the <kbd>F5</kbd> key (by default) and shows various technical information about Minetest which are mostly interesting for developers, but some information are also useful for players, especially the [[coordinates]].
 
 
 
It contains various information useful for development and testing. Press <kbd>F5</kbd> to access different debug screen modes:
 
 
 
* Debug screen disabled
 
* Debug info
 
* Debug info + profiler graph
 
* Debug info + wireframe (only with “debug” [[Privileges|privilege]])
 
 
 
== Debug info ==
 
[[File:Debug.png]]
 
 
 
The basic debug information is located at the top left of the screen.
 
 
 
=== First row ===
 
* '''Minetest X.Y.Z''': The version number
 
* '''FPS''': Number of frames per second, denotes how fast everything is rendered. Higher = better. It is limited at 60 by default. An FPS lower than 30 is pretty bad (try to lower graphics settings or close some background applications)
 
* '''R: range_all''': If “1”, the full viewing range is enabled, if “0”, it is disabled. You can toggle this with the “Far View” key (<kbd>R</kbd>)
 
* '''drawtime''': The time it took to render the previous frame, in milliseconds. This number is directly related to FPS, lower is better
 
* '''dtime_jitter''': Roughly spoken, the variance of drawtime over some short period of time <!-- TODO: This is a crappy explanation, please improve it! -->
 
* '''v_range''': Viewing range in nodes. By default, you can adjust this with <kbd>+</kbd> and <kbd>-</kbd>.
 
* '''RTT''': Round Trip Time in seconds. This is especially important when connected to a server. Lower is better
 
 
 
=== Second row ===
 
* '''The first three numbers''': Your [[coordinates]]: X, Y and Z
 
* '''yaw''': Your current horizontal looking direction in degrees (0-360), with 0° translated to “North”, 270° to “East”, 180° to “South” and 90° to “West”. Note that the concept of cardinal directions is not really meaningful in Minetest, as the world is a cube, not a sphere, and there are no poles
 
* '''seed''': The randomness seed of the current world. Equal seeds (along with equal [[Map generator|map generation]] settings) will lead to equal world
 
* '''pointing_at''': If you're [[Pointing|pointing]] at a node, this shows its [[Itemstrings|itemstring]] as well as the file name of the primary texture (top side on cubes)
 
 
 
=== When pointing an entity ===
 
When you point an entity (such as a dropped item or player), the following information is shown:
 
 
 
* Entity type
 
* '''hp''': Health in hit points (→[[Player#Health]])
 
* '''armor''': Armor groups, determine how the entity receives damage. (With “immortal=1”, the entity doesn't take damage, or it doesn't take damage the conventional way)
 
 
 
=== Profiler graphs ===
 
''TO BE WRITTEN!''
 

Latest revision as of 19:58, 22 December 2024