lhofhansl
fbc525d683
Restore behavior of emergequeue_limit_total ( #15947 )
...
* And make sure `emergequeue_limit_total` is >= max(`emergequeue_limit_diskonly`, `emergequeue_limit_generate`)
2025-03-27 18:59:38 -07:00
sfan5
7b746d21f9
Make sure generated blocks have their timestamp set
...
behavior change: newly generated blocks are no longer momentarily activated.
this shouldn't matter for anyone and did not consistently apply to all blocks anyway
addresses issue from #15902 for new maps(!)
2025-03-26 20:49:43 +01:00
sfan5
7892541383
Various random code cleanups
2025-03-04 19:53:01 +01:00
sfan5
d54646d342
Improve error handling of map database creation
2025-03-04 19:53:01 +01:00
sfan5
c3477a4d08
Adjust Android default view range and mapblock limit
2025-03-01 22:40:10 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) ( #15321 )
2024-10-28 15:57:39 +01:00
sfan5
c1ea49940b
Add questionable workaround for env lock contention
2024-09-26 17:31:49 +02:00
sfan5
0220d0d492
Encapsulate envlock
2024-09-26 17:31:49 +02:00
sfan5
588a0f83e9
Divorce map database locking from env lock ( #15151 )
2024-09-26 17:31:49 +02:00
sfan5
02f40e5b0d
Fix blockseed for on_generated in mapgen env
2024-07-22 16:31:46 +02:00
sfan5
fac9aac821
Move malloc_trim invocations to background thread ( #14744 )
2024-06-17 15:59:35 +02:00
sfan5
bc4ab8b99e
General code refactoring/improvements in server, treegen and connection
2024-03-20 16:37:32 +01:00
sfan5
dfba79f8ff
Split servermap.cpp/h off from map.cpp/h
2024-03-20 16:37:32 +01:00
sfan5
3cac17d23e
Lua on each mapgen thread ( #13092 )
2024-02-13 22:47:30 +01:00
numzero
3b74cc4a41
Replace PP with direct printing
2023-06-26 22:51:32 +02:00
Desour
9c348d057e
Replace the old STATIC_ASSERT macro with static_assert
2023-06-15 10:38:44 +02:00
Jude Melton-Houghton
d13b12b791
Store MapEditEvent
blocks in a vector ( #13071 )
2022-12-24 12:21:59 -05:00
Jude Melton-Houghton
7701e70dc9
Make MapEditEvent more complete
...
SetBlocksNotSent is no longer used.
2022-12-24 08:24:59 -05:00
Jude Melton-Houghton
8f996e4a7c
Remove unused MapBlock functionality
2022-10-09 13:43:48 -04:00
rubenwardy
a871115889
Fix some warnings ( #12615 )
2022-07-30 12:51:23 +01:00
SmallJoker
051181fa6e
Enforce limits of settings that could cause buggy behaviour ( #12450 )
...
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
2022-07-09 22:32:08 +02:00
sfan5
f5a8593b11
Add more Prometheus metrics ( #12274 )
2022-05-09 21:20:58 +02:00
Daroc Alden
e54f5e544f
Fix memory leak in EmergeManager
...
EmergeManager keeps a copy of the BiomeGen that it creates, but
never deletes it.
2022-03-14 21:01:36 +01:00
Jude Melton-Houghton
1b2176a426
Cancel emerge callbacks on shutdown
2022-01-23 00:56:17 +01:00
sfan5
4ee643f472
Fixes around emerge handling
2021-10-25 20:31:52 +02:00
SmallJoker
ecc6f4ba25
Remove a few unused functions reported by callcatcher ( #11658 )
2021-10-12 20:12:20 +02:00
sfan5
766e885a1b
Clean up/improve some scriptapi error handling code
2021-09-10 23:16:46 +02:00
Wuzzy
e7cd4cfa25
Fix /emergeblocks crashing in debug builds ( #11461 )
...
The reason for the bug was an u16 overflow, thus failing the assert. This only happened in Debug build but not in Release builds.
2021-07-31 19:54:40 +02:00
SmallJoker
c9144ae5e2
Add core.compare_block_status function ( #11247 )
...
Makes it possible to check the status of the mapblock in a future-extensible way.
2021-05-30 20:24:12 +02:00
sfan5
2da1eee394
Fix broken BiomeGen
abstraction ( #11107 )
2021-03-23 15:43:26 +01:00
rubenwardy
4c76239818
Remove dead code ( #10845 )
2021-01-22 15:09:26 +00:00
Lars
be8d1d2d99
Increase default emerge queue limits and limit enqueue requests for active blocks.
2020-11-12 09:04:10 -08:00
sfan5
a9d6be8b6f
Fix documentation of emergequeue_limit settings
2020-05-24 11:48:33 +02:00
sfan5
cb159f8d8a
Fix crash when exiting server during running mapgen
...
easily reproducible with a high num_emerge_threads and /emergeblocks
2020-05-05 20:19:47 +02:00
sfan5
3c65d1acec
Give the Mapgen on each EmergeThread its own Biome/Ore/Deco/SchemManager copy
2020-05-05 19:26:59 +02:00
Loic Blot
6d43736172
Move serveractiveobject & unitsao
...
Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h}
Move UnitSAO class to dedicated files
2020-04-11 16:07:17 +02:00
sfan5
de73f989eb
Overall improvements to log messages ( #9598 )
...
Hide some unnecessarily verbose ones behind --trace or disable them entirely.
Remove duplicate ones. Improve their contents in some places.
2020-04-08 20:13:23 +02:00
SmallJoker
539f016c1b
Better F6 profiler ( #8750 )
...
Update the profiler names to make more sense of what they actually represent
Move the profiler code from header to its source file
Use monospace font to align lines
Format the statistics line to align better with surrounding values
Refresh the profiler each 3 seconds (roughly)
2019-08-13 19:56:55 +02:00
Loic Blot
a4677496f3
Fix comments
2019-03-31 20:49:39 +02:00
Loïc Blot
b3716a03a6
EmergeManager::initMapgens use FATAL_ERROR if and drop boolean return
...
We never handle the boolean return, also init twice is a coding error, not a runtime error
2019-03-31 20:49:39 +02:00
Paramat
c0fb5dd317
num_emerge_threads: Initialise value to cope with setting syntax error ( #8396 )
2019-03-18 11:19:53 +01:00
sofar
61e5fbab72
getS16NoEx() returns true unless syntactical error in conf. ( #8304 )
...
The getS16NoEx() handler will return true unless there is a
`[num_emerge_threads]` line in the `minetest.conf` at which
point the excption handler part is reached. Due to the fact that
`defaultsettings.cpp` has a default value set for this setting,
that never will happen.
Because of this, the code will never check the number of threads on
the system, and keep `nthreads = 0`. If that happens, the value is
changed to `1` and only 1 emerge thread will be used.
The default should be set to `1` instead, due to the potential unsafe
consequences for the standard sqlite map files, but that should be a
separate commit that also adds documentation for that setting. This
commit focuses on removing this `hiding` bug instead.
2019-03-05 08:11:13 +01:00
red-001
07b1743d3d
Fix crash caused by Lua error during startup ( #7473 )
2018-06-22 21:04:41 +02:00
paramat
07622bf9b4
Generate Notifier: Clear events once after all 'on generated' functions
2018-03-03 22:59:49 +00:00
Vitaliy
20a85d76d9
Move files to subdirectories ( #6599 )
...
* Move files around
2017-11-08 23:56:20 +01:00
Loïc Blot
ad7daf7b52
Add session_t typedef + remove unused functions ( #6470 )
...
* Add session_t typedef + remove unused functions
u16 peer_id is used everywhere, to be more consistent and permit some evolutions on this type in the future (i'm working on a PoC), uniformize u16 peer_id to SessionId peer_id
2017-09-27 19:47:36 +02:00
Loïc Blot
bd6b90359c
Remove DSTACK support ( #6346 )
...
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.
2017-08-30 08:09:41 +02:00
Loïc Blot
13e995b811
Modernize src/c* src/d* and src/e* files ( #6263 )
...
* Modernize src/c* src/d* and src/e* files
* default operator
* redundant init
* delete default constructors on CraftDefinition childs (never used)
* fix some missing init values
* const ref fix reported by clang-tidy
* ranged-based for loops
* simple conditions & returns
* empty stl function instead of size
* emplace_back stl function instead of push_back + construct temp obj
* auto for some iterators
* code style fixes
* c++ stl headers instead of C stl headers (stdio.h -> cstdio)
2017-08-17 23:02:50 +02:00
Loic Blot
31b84ce1f2
Move MapEditEventAreaIgnorer to emerge.cpp
...
It's only used in emerge threads and it's a local object, don't expose it to the whole Minetest
2017-07-25 08:47:52 +02:00
Loïc Blot
76be103a91
C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) ( #5984 )
...
* C++11 patchset 9: move hardcoded init parameters to class definitions
C++11 introduced the possibility to define the default values directly in class definitions, do it on current code
Also remove some unused attributes
* CollisionInfo::bouncy
* collisionMoveResult::collides_xy
* collisionMoveResult::standing_on_unloaded
* Clouds::speed
* More constructor cleanups + some variables removal
* remove only write guiFormSpecMenu::m_old_tooltip
* move header included inside defintions in genericobject.h
* remove some unused since years exception classes
* remove unused & empty debug_stacks_init
* remove unused & empty content_nodemeta_serialize_legacy
* remove forgotten useless bool (bouncy) in collision.cpp code
2017-06-16 11:25:52 +02:00