1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-04 00:40:24 +02:00
Commit Graph

11366 Commits

Author SHA1 Message Date
7901087466 Rename MINETEST_SUBGAME_PATH to MINETEST_GAME_PATH (#14351) 2024-02-12 23:21:19 +01:00
e2ccd14c05 Allow using VBOs for meshes all the way down to 4 vertices (#14366)
This may improve performance substantially if there are many meshes with "few" vertices that would otherwise be retransmitted to the GPU every frame. In testing, this does not seem to decrease performance, even if as few as 4 vertices are used (e.g. particles).
2024-02-12 23:20:48 +01:00
a14320fc44 Improve deprecation error messages 2024-02-12 22:58:26 +01:00
eb52a149a0 Enable IPO/LTO by default except for debug builds (#14198)
Test case:

```
$ cmake . -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release -DBUILD_SERVER=TRUE -DENABLE_TOUCH=FALSE

         minetest minetestserver
W/o LTO:      13M           7.3M
W/  LTO:      11M           5.9M
difference:   15%            19%
```

Also fixes various compiler warnings resulting from compilation using LTO.

---------

Signed-off-by: David Heidelberg <david@ixit.cz>
2024-02-09 00:01:12 +01:00
adaa4cc2f3 Move hard coded minimap to builtin (#14071) 2024-02-07 20:13:23 +01:00
f2b99332d9 Add Lua API function to resolve node/collision/selection boxes (#13964) 2024-02-06 20:45:16 +01:00
4859cf44ce Fix translation updater script: Handle nested modpacks, support games (#14340) 2024-02-05 20:57:30 +01:00
83f779c52d Fix active object adding to not generated block (#14311) 2024-02-04 21:24:08 +01:00
c9e10e1dd9 Drop valgrind from CI and instead enable ASan
The recently added ioctl use is reported as a false-positive by valgrind.
I tried moving it to different compilers/versions two times and only
hit further issues that were valgrind's fault.

Also includes a tiny fix.
2024-02-04 21:23:05 +01:00
4259ac96ea Optimize fs::CopyFileContents on Linux and Windows 2024-02-04 21:23:05 +01:00
714c9361ea Add unit tests for fs::CopyFileContents 2024-02-04 21:23:05 +01:00
93381014a0 Bypass media transfer in single player 2024-02-04 21:23:05 +01:00
16aaef097a Make the protocol dissector heuristic (#14335) 2024-02-04 21:21:23 +01:00
1d9c9710d7 Fix short raycasts missing large objects (#14339)
Increases the tolerance from one node to five nodes.
Also optimizes the "sphere" used for pre-filtering entities
to start in the middle of the line segment rather than at the start.
2024-02-04 14:04:05 +01:00
e7dbd325d2 RemotePlayer: make peer ID always reflect the validity of PlayerSAO (#14317)
Upon disconnect, RemotePlayer still had a peer ID assigned even though
the PlayerSAO object was maked as gone (for removal). This commit makes
that the following always holds true:

	(!sao || sao->isGone()) === (peer_id == PEER_ID_INEXISTENT)
2024-02-02 22:13:24 +01:00
893594d81a Add help formspec for CSM commands (#13937) 2024-02-02 22:12:59 +01:00
176e674a51 Add wear bar color API (#13328)
---------

Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-02-02 21:21:00 +01:00
e10d8080ba Add flag to control mgv6 temple generation (#14293) 2024-01-30 21:52:04 +01:00
9da1354f3a Fix missing limit check for block y pos (#14320) 2024-01-30 21:51:51 +01:00
e1f6108789 Revert class forward declaration in {client,server}opcodes.h
closes #14324
2024-01-30 17:04:12 +01:00
40bf88ac74 Performance: Limit blitting work to overlapping area 2024-01-28 13:01:54 +01:00
ffec698d3e Change how [combine parameters are checked
the old checks were too strict
2024-01-28 13:01:54 +01:00
b1ee137177 Minor documentation fixes 2024-01-28 13:01:54 +01:00
fbec168e91 Only pause rendering if the Android activity is stopped (#14211) 2024-01-27 14:37:00 +01:00
89f3502b56 Move Server ban check to different point 2024-01-27 10:33:32 +01:00
5dbc1d4c08 Move some files to src/server/ 2024-01-27 10:33:32 +01:00
c0f852e016 Change NetworkPacket to reserve instead of resize
also make the bool serialization clearer and move the constructor
to the header file
2024-01-27 10:33:32 +01:00
397682a5b0 Clean up client and server command sending / tables 2024-01-27 10:33:32 +01:00
2b99dabdac Touchscreen: Abort ongoing short taps if touch interaction mode changes (#14305) 2024-01-26 23:19:06 +01:00
df9975f35d Add markdown admonition extension (#14303) 2024-01-26 22:10:57 +01:00
4158759265 Move mtevent.h to src/client/ 2024-01-26 22:10:36 +01:00
8927e7caf6 Handle some edge cases in tile images 2024-01-26 22:10:36 +01:00
a46fe79939 Reduce code duplication in tile.cpp 2024-01-26 22:10:36 +01:00
2ef080a51b Slight simplification of RemoteClient::getNextBlocks(...) (#14302) 2024-01-25 11:32:18 -08:00
4468813d47 Show more lines in chat scrollback buffer (#14290) 2024-01-24 19:41:29 +01:00
6a2eb4da07 Restore pointability backwards compatibility 2024-01-23 23:30:28 +01:00
731b84d725 Reduce some instances of useless data shuffling 2024-01-23 22:34:36 +01:00
362e4505e8 Minor improvements to media request / announce code
I had to throw away the code switching sendRequestedMedia to
a bin packing algorithm because it actually performed worse. :(
2024-01-23 22:34:36 +01:00
13013d1b8b Fix client loading not aborting correctly in certain cases 2024-01-23 22:34:36 +01:00
6df0de565f Check media requests on the server more carefully 2024-01-23 22:34:36 +01:00
89eabb5803 Drop speed tests and some other unused code from clientlauncher.cpp 2024-01-23 22:34:36 +01:00
6aa4f14a28 Drop some unneeded MOD_REASONs 2024-01-23 22:34:36 +01:00
be7844192b Don't save blocks asap for only lighting updates 2024-01-23 22:34:36 +01:00
9e3a11534f Allow fog color to be overriden properly (#14296) 2024-01-23 22:33:33 +01:00
a29d3cf074 Save the settings in more cases to avoid losing setting changes (especially on Android) (#14266) 2024-01-23 21:33:27 +01:00
f6ecd931dc Minor documentation formatting fixes 2024-01-22 22:41:33 +01:00
f0180ad488 Fix revoke callbacks being run for false values passed to set_privileges 2024-01-22 22:24:32 +01:00
afc48cf224 Address set_player_privs footgun (#14297)
---------

Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-01-22 20:06:03 +01:00
5958714309 Tool specific pointing and blocking pointable type (#13992) 2024-01-22 18:27:08 +01:00
fb461d21a5 Fix waypoint precision wraparound, add bounds check 2024-01-21 21:00:09 +01:00