Skip to content
Permalink
Branch: master
Commits on Apr 19, 2019
  1. Android: Clear chat open flag on cancel or completion (#8478)

    stujones11 authored and nerzhul committed Apr 19, 2019
Commits on Apr 14, 2019
  1. Attend to review, re-arrange blank lines, update lua_api.txt

    paramat committed Apr 10, 2019
  2. Fix regression in automatic_face_movement_max_rotation_per_sec

    Pedro Gimeno authored and paramat committed Apr 4, 2019
    Values <= 0 should make the yaw change instant. This worked in 0.4.16 but was broken in 089f594.
    
    Per bug report by oil_boi_minetest on IRC.
  3. Various network performance improvements (#8125)

    osjc authored and paramat committed Apr 14, 2019
    * Optimize packet construction functions
    
    Some of the functions that construct packets in
    connection.cpp are using a const reference to get the raw
    packet data to package and others use a value passed
    parameter to do that. The ones that use the value passed
    parameter suffer from performance hit as the rather bulky
    packet data gets a temporary copy when the parameter is
    passed before it lands at its final destination inside the
    newly constructed packet. The unnecessary temporary copy
    hurts quite badly as the underlying class (SharedBuffer)
    actually allocates the space for the data in the heap.
    
    Fix the performance hit by converting all of these value
    passed parameters to const references. I believe that this
    is what the author of the relevant code actually intended
    to do as there is a couple of packet construction helper
    functions that already use a const reference to get the
    raw data.
    
    * Optimize packet sender thread class
    
    Most of the data sending methods of the packet sender thread
    class use a value passed parameter for the packet data to be
    sent. This causes the rather bulky data to be allocated on
    the heap and copied, slowing the packet sending down. Convert
    these parameters to const references to avoid the performance
    hit.
    
    * Optimize packet receiver thread class
    
    The packet receiver and processor thread class has many
    methods (mostly packet handlers) that receive the packed data
    by value. This causes a performance hit that is actually
    worse than the one caused by the packet sender methods
    because the packet is first handed to the processPacket
    method which looks at the packet type stored in the header
    and then delegates the actual handling to one of the
    handlers. Both, processPacket and all the handlers get the
    packet data by value, leading to at least two unnecessary
    copies of the data (with malloc and all the slow bells and
    whistles of bulky classes).
    
    As there already is a few methods that use a const reference
    parameter for the packet data, convert all this value passed
    packets to const references.
Commits on Apr 13, 2019
  1. World start time: Move to first full light (day night ratio = 1000) (#…

    paramat committed Apr 13, 2019
    …8410)
    
    6125 is the time of first full light according to 'get_node_light()',
    and the time of first full light visually when basic shaders are on.
    This is the optimum default new world start time, taking all possible
    games into account.
    The previous time assumed a game similar to Minetest Game. Games
    should set this setting themselves according to their needs.
Commits on Apr 12, 2019
  1. Add Irrlicht-specific smart pointer (#6814)

    numberZero authored and rubenwardy committed Apr 12, 2019
  2. Add Mkdocs API site (#8133)

    pauloue authored and nerzhul committed Apr 12, 2019
    * Add MkDocs API site
Commits on Apr 11, 2019
  1. Add node field to PlayerHPChangeReason table (#8368)

    pauloue authored and rubenwardy committed Apr 11, 2019
Commits on Apr 9, 2019
  1. Nodedef 'drop' documentation: Improve, add tool filtering (#8458)

    paramat committed Apr 9, 2019
Commits on Apr 8, 2019
  1. util/hex.h: Remove whitespace-only line (#8460)

    ClobberXD authored and paramat committed Apr 8, 2019
Commits on Apr 7, 2019
  1. daynightratio.h: Improve codestyle, minor optimisations (#8453)

    paramat committed Apr 7, 2019
  2. Android settings: Use 'simple' leaves instead of 'fancy' (#8440)

    paramat committed Apr 7, 2019
    'Fancy' leaves are intensive to render.
    Also remove the unnecessary duplicated setting of 'chunksize'.
  3. Optimize random turns in dungeongen (#8129)

    osjc authored and SmallJoker committed Apr 7, 2019
    It turns out there is no need to return the new value and
    preserve the old one in random_turn, the procedure can be
    made to modify the value in-place. This saves quite a bunch
    of parameter and return value copying.
  4. Find PostgreSQL correctly (#8435)

    adrido authored and nerzhul committed Apr 7, 2019
  5. util/hex.h: Reserve result space in hex_encode()

    starling13 authored and SmallJoker committed Apr 7, 2019
    Reserve enough space for the result of hex_encode() to eliminate reallocations
  6. Add deprecation warnings for ObjectRef:get/set_attribute (#8443)

    ClobberXD authored and SmallJoker committed Apr 7, 2019
Commits on Apr 4, 2019
  1. Stabilise 'day night ratio' to fix object brightness flicker (#8417)

    paramat committed Apr 4, 2019
    Previously, when basic shaders were enabled, the function
    time_to_daynight_ratio() returned values jumping between 149 and 150
    between times 4375 and 4625, and values jumping between 999 and 1000
    between times 6125 and 6375, (and the corresponding times at sunset)
    due to tiny float errors in the interpolation code.
    
    This caused the light level returned by blend_light() to jump between
    14 and 15, which became noticeable recently as those light levels were
    given different visual brightnesses.
    
    Add early returns to avoid the problematic interpolation, and to
    avoid unnecessary running of the loop.
  2. Change sign of pitch angle in debug menu (#8438)

    ClobberXD authored and paramat committed Apr 4, 2019
    Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
Commits on Apr 3, 2019
  1. Change pitch fly binding to 'P', add to change keys menu (#8314)

    rubenwardy authored and paramat committed Apr 3, 2019
Commits on Mar 31, 2019
  1. Fix comments

    nerzhul committed Mar 31, 2019
  2. mapgen: drop mapgen id from child mapgens.

    nerzhul committed Mar 25, 2019
    This id must be owned by the child mapgen and never be set to a misc value by a developer
    
    Also use nullptr in some places
  3. EmergeManager::initMapgens use FATAL_ERROR if and drop boolean return

    nerzhul committed Mar 25, 2019
    We never handle the boolean return, also init twice is a coding error, not a runtime error
  4. Use unordered_map instead of map for craft definitions (#8432)

    HybridDog authored and nerzhul committed Mar 31, 2019
Commits on Mar 27, 2019
  1. Optimize core.after in a simple way (#8351)

    DS-Minetest authored and sfan5 committed Mar 27, 2019
  2. Require 'waving = 3' in a nodedef to apply the liquid waving shader (#…

    paramat committed Mar 27, 2019
    …8418)
    
    Makes the liquid waving shader per-nodedef like waving leaves/plants,
    instead of being applied to all liquids.
    Like the waving leaves/plants shaders, the liquid waving shader can
    also be applied to meshes and nodeboxes.
    
    Derived from a PR by t0ny2.
Commits on Mar 26, 2019
  1. Dungeons: Do not remove nodes that have 'is_ground_content = false' (#…

    paramat committed Mar 26, 2019
    …8423)
    
    Like randomwalk caves, preserve nodes that have 'is_ground_content = false',
    to avoid dungeons that generate out beyond the edge of a mapchunk destroying
    nodes added by mods in 'register_on_generated()'.
    
    Issue discovered by, and original PR by, argyle77.
  2. Prevent multi-line chat messages server-side (#8420)

    rubenwardy committed Mar 26, 2019
Commits on Mar 20, 2019
Commits on Mar 19, 2019
  1. Fix texture rotation for wallmounted nodeboxes

    sfan5 committed Mar 18, 2019
    fixes #8358
Commits on Mar 18, 2019
  1. httpfetch: Disable IPv6 here too if requested by settings (#8399)

    sfan5 authored and nerzhul committed Mar 18, 2019
  2. num_emerge_threads: Initialise value to cope with setting syntax error (

    paramat authored and nerzhul committed Mar 18, 2019
Commits on Mar 17, 2019
  1. num_emerge_threads: Fix documentation of automatic selection

    paramat authored and sfan5 committed Mar 17, 2019
  2. Add newline before itemstring in item tooltip (#8213)

    Wuzzy2 authored and SmallJoker committed Mar 17, 2019
  3. core.after: Improve assertion message (#8388)

    ClobberXD authored and SmallJoker committed Mar 17, 2019
Older
You can’t perform that action at this time.