Age | Commit message (Collapse) | Author |
|
|
|
|
|
(#13237)
|
|
* Generalize mesh chunking. Set 3x3x3 chunks.
* Make mesh chunk size configurable... Default to 1 (off).
* Extract all mesh grid maths into a dedicated class
---------
Co-authored-by: x2048 <codeforsmile@gmail.com>
|
|
Reduce the number of drawcalls by generating a mesh per 8 blocks (2x2x2). Only blocks with even coordinates (lowest bit set to 0) will get a mesh.
Note: This also removes the old 'loops' algorithm for building the draw list, because it produces visual artifacts and cannot be made compatible with the approach of having a mesh for every 8th block without hurting performance.
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Co-authored-by: Lars <larsh@apache.org>
Co-authored-by: sfan5 <sfan5@live.de>
|
|
Reduces memory consumption and improves performance
|
|
Co-authored-by: DS <vorunbekannt75@web.de>
|
|
Co-authored-by: sfan5 <sfan5@live.de>
|
|
|
|
|
|
Co-authored-by: sfan5 <sfan5@live.de>
|
|
Co-authored-by: sfan5 <sfan5@live.de>
|
|
|
|
|
|
|
|
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
|
|
|
|
New users find Minetest's account system confusing.
This change moves username/password to a new dialog,
with login and register buttons added to the Join Game tab.
The old registration confirmation dialog is removed in
favour of the new dialog.
Fixes #8138
|
|
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
|
|
|
|
If the server stops talking to us without saying bye we
should actually end the in-game session with an error message.
|
|
Calls to the cache function ended up creating a new texture regardless whether
the texture is already cached.
|
|
This commit introduces mt_localtime() in src/gettime.h, a wrapper
around the OS-specific thread-safe versions of localtime()
(resp. localtime_s on Windows and localtime_r in other systems).
Per the Open Group recommendation,
«portable applications should call tzset() explicitly before using
ctime_r() or localtime_r() because setting timezone information is
optional for those functions», so we also do a one-shot
call of tzset() (_tzset() on Windows to avoid warning C4996).
The function is used to replace the localtime() calls in
getTimestamp() and makeScreenshot().
(The only reminaing call to localtime() in the tree now is the one in
the local copy of the Lua source code.)
|
|
|
|
This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
|
|
|
|
|
|
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
|
|
|
|
|
|
|
|
This limits the logged deprecation messages to the mods that are loaded
Unifies the mod naming convention check for CSM & SSM
|
|
CSM would previously scan for files within .git or .svn directories, and also special files such as .gitignore
|
|
This solve a crash from mainmenu while extracting the zip
|
|
|
|
|
|
|
|
This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects
Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
|
|
* protect it from Camera, Sky, ClientMap object calls
* rename Game::sky to Game::m_sky
|
|
This permit cleaner access to meshCache and ensure we don't access to it from all the code
|
|
This permits to prevent client to own the mesh cache cleanup logic. It's better in RenderingEngine
|
|
Make the RenderingEngine filesystem member non accessible from everywhere
This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation
Found also another irrlicht <1.8 compat code to remove
|
|
|
|
|
|
|
|
The only valid usecase for these is interfacing with OS APIs
that want a locale/OS-specific multibyte encoding.
But they weren't used for that anywhere, instead UTF-8 is pretty
much assumed when it comes to that.
Since these are only a potential source of bugs and do not fulfil
their purpose at all, drop them entirely.
|
|
This reverts commit b49dfa92ce3ef37b1b73698906c64191fb47e226.
|
|
|
|
property (#10443)
|
|
Run unused functions reported by cppcheck
This change removes a few (but not all) unused functions.
Some unused helper functions were not removed due to their complexity and potential of future use.
|