1
0
mirror of https://github.com/minetest/minetest.git synced 2025-06-30 23:20:22 +02:00
Commit Graph

992 Commits

Author SHA1 Message Date
4acbd59162 Support absent scene node names (#14330)
Contains a hack to support IrrlichtMT revision 14 for now (until we release revision 15)
2024-02-18 11:39:16 +01:00
6ca214fefc Introduce std::string_view into wider use (#14368) 2024-02-17 15:35:33 +01:00
2b97fead9e Fix some potential iterator invalidation issues 2024-02-16 12:34:40 +01:00
9ac6d330b4 Fix minimap textures overwrite (#14349) 2024-02-15 21:52:41 +01:00
DS
4843890c56 Inline g/setPixel in imageCleanTransparent (#14323) 2024-02-15 19:38:23 +01:00
c81e0b7433 Allow shaders with disabled post processing pipeline (#14338)
- Allow disabling of the post processing pipeline while leaving shaders enabled
- Also disable post processing on Android by default
2024-02-15 08:25:33 -08: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
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
93381014a0 Bypass media transfer in single player 2024-02-04 21:23:05 +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
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
fbec168e91 Only pause rendering if the Android activity is stopped (#14211) 2024-01-27 14:37:00 +01:00
5dbc1d4c08 Move some files to src/server/ 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
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
13013d1b8b Fix client loading not aborting correctly in certain cases 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
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
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
404a063fdf Touchscreen: Allow mods to swap the meaning of short and long taps (punch with single tap) (#14087)
This works through a new field "touch_interaction" in item definitions.
The two most important use cases are:
 - Punching players/entities with short tap instead of long tap (enabled by default)
 - Making items usable that require holding the place button (e.g. bows and shields in MC-like games)
2024-01-21 17:44:08 +01:00
7c9706fdcf Remove unused meshgen_block_cache_size setting 2024-01-19 11:52:39 +01:00
f08e4bb27d Return to the main menu if a shader compilation fails (#14256)
Before this change, if the shaders are broken, only an error message is shown and the player enters the world nonetheless, where he/she sees broken graphics.
2024-01-19 11:51:46 +01:00
2ea8d9ca11 Fix out of range enum casts in deSerialize functions (#14090) 2024-01-17 20:05:46 +01:00
0383c44f0d Custom data structure for active objects to get performance *and* safety (#13880) 2024-01-17 20:04:56 +01:00
08ee6d8d4b Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode (#11073) 2024-01-17 17:47:06 +01:00
8093044f07 Support OpenGL 3 (#13321) 2024-01-16 21:09:18 +01:00
ed7d4037b2 Client: fix possible division by zero in [crack modifier 2024-01-14 16:28:03 +01:00
1ba26d67bd Remove excessive includes from porting.h 2024-01-14 13:17:53 +01:00
b12be0498e Don't enable relative mouse mode if in touchscreen mode (#14118) 2024-01-13 20:01:10 +01:00
518ecd7f4e Slight optimizations in ClientMap (#14251) 2024-01-12 16:53:08 -08:00
345e93d19c Code style: Use non-static member initialisation instead of member initialiser lists for shader uniform names
Before this change,
the member type and member name are at one place,
and the member name and uniform name are at another place.
If the uniform name is written directly at the member declaration,
the member type, member name and uniform name are all at one place,
which leads to shorter code and may be easier to read.
2024-01-11 20:04:42 +01:00
a7eaee77ca ContentCAO: Fix threshold of alpha channel textures (#14213)
With disabled shaders, the material EMT_TRANSPARENT_ALPHA_CHANNEL uses the
parameter as an alpha threshold to decide whether to draw the texture.
Thus lowering this limit fixes the issue of vanishing textures below alpha 128.
2024-01-10 19:34:52 +01:00
4bf95703a0 Allow access into MapSector::m_blocks (#14232)
* New API to allow access into MapSector::m_blocks
* Use this API on ClientMap::touchMapBlocks(), ClientMap::updateDrawList(), and ClientMap::updateDrawListShadow() to speed them up
2024-01-10 09:17:26 -08:00
2766c70ad3 Fix dividing by zero crashes in texture modifiers 2024-01-07 21:49:26 +01:00
2c390b5473 Rework client connecting and enable fallback address use 2024-01-07 21:49:05 +01:00
dc7fb26921 Extend capabilities of Address class 2024-01-07 21:49:05 +01:00
171f911237 Android: Add selection dialog (drop down/combo box) (#13814)
- The handling of IGUIComboBox uses the new setAndSendSelected() method.
- getDialogState() is now getInputDialogState() and returns the state of the input dialog.
- getLastDialogType() is added and returns current/last shown dialog's type.
- getInputDialogState() now returns an enum instead of int.
- getAndroidUIInput() now returns void instead of bool.
- New data types (enum) are added:
  (1) GameActivity.DialogType (Java) and porting::AndroidDialogType (C++)
  (2) GameActivity.DialogState (Java) and porting::AndroidDialogState (C++)
- When showing a text input dialog, there is no custom accept button text any more.
- showDialog()/showDialogUI() for text input is now showTextInputDialog()/showTextInputDialogUI().
- showInputDialog()/showDialogUI() for text input is now showTextInputDialog()/showTextInputDialogUI().
- getDialogValue()/getInputDialogValue() is now getDialogMessage()/getInputDialogMessage().


Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2024-01-07 19:00:04 +07:00
c2c8d4d410 Remove controls listed in the pause menu (no touchscreen) (#13282) 2024-01-05 20:10:07 +00:00
34ce86a8f5 Fix GameUI text staying visible during shutdown. (#14197) 2024-01-05 00:39:56 +01:00
e17455cb22 Remove server's address and port from pause menu (#14082) 2024-01-05 00:39:11 +01:00
DS
c9cd0d20ef Use AL_SOFT_direct_channels_remix extension for non-positional stereo sounds (#14195) 2024-01-03 21:57:00 +01:00
DS
3eab5e9002 Replace clientmap's MeshBufListList with a hashmap 2024-01-03 21:56:38 +01:00
d0753dddb1 Method add_pos for object/player (#14126) 2024-01-01 22:48:56 +01:00
c9ab61aa8c Add missing header for gcc-14
https://gcc.gnu.org/gcc-14/porting_to.html

Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-12-31 19:26:33 +01:00