Commit graph

114 commits

Author SHA1 Message Date
MihailRis
a413c5d09e implement inter-chunk structure generation 2024-09-21 20:50:12 +03:00
MihailRis
4f882a3ca3 add StructurePlacement & add SurroundMap visualization test 2024-09-20 23:43:54 +03:00
MihailRis
88b0f8e3d6 add VoxelStructure lua usertype 2024-09-19 18:41:34 +03:00
MihailRis
bf9f81a98c Merge branch 'main' into heightmaps 2024-09-19 15:16:14 +03:00
MihailRis
f05ed4942d add util::Buffer copy constructor 2024-09-16 21:31:37 +03:00
MihailRis
7dec651ac1 Merge branch 'main' into heightmaps 2024-09-12 18:06:23 +03:00
MihailRis
f8fadf8b74 add json BJSON_TYPE_BYTES support 2024-09-12 17:22:00 +03:00
MihailRis
8b947fe78e add util::Buffer template 2024-09-12 13:43:08 +03:00
MihailRis
ab110ab8bf add AreaMap2D tests 2024-09-10 22:19:54 +03:00
MihailRis
fdefbda49f implement SurroundMap & update AreaMap2D 2024-09-10 20:34:26 +03:00
MihailRis
2a4dbe3ac4 rebuild SurroundMap (WIP) 2024-09-10 14:50:57 +03:00
MihailRis
7c0c268508 optimize AreaMap2D 2024-09-09 20:37:42 +03:00
MihailRis
c3569b5dd4 add AreaMap2D 2024-09-09 18:02:08 +03:00
MihailRis
feb86a547f Merge branch 'main' into heightmaps 2024-09-06 18:38:53 +03:00
MihailRis
96941cb707 fix utf-8 decoder & add u32string functions 2024-08-29 15:40:51 +03:00
MihailRis
f8d0a4f4c7 add util::crop_utf8 (stringutil) 2024-08-29 15:39:14 +03:00
MihailRis
6e99461b5f refactor Heightmap methods with templates 2024-08-13 22:00:16 +03:00
MihailRis
de5c75d782 replace include guards with pragma once 2024-08-10 01:57:59 +03:00
MihailRis
f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
alexei-zebra
91ad9cc64c add compatibility with other files 2024-08-06 15:51:55 +03:00
InfiniteCoder
eb6bb19dc6 interfaces/ 2024-08-06 00:04:32 +03:00
InfiniteCoder
5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder
3aa0298c85 files/ 2024-08-04 17:08:11 +03:00
InfiniteCoder
e6da3638f0 Logger.hpp 2024-08-04 12:46:03 +03:00
InfiniteCoder
d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
Vyacheslav Ivanov
4efa574eec
fix: PVS-Studio V508 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 21:05:19 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav Ivanov
8c5e5559ec fix: optimization: PVS-Studio warning V831
Replaced 'at()' method with 'operator[]' to improve performance.

The 'at()' method performs bounds checking, which can introduce overhead. Using 'operator[]' bypasses this check and can improve performance when you are certain that the index is within bounds.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:46:29 +03:00
Vyacheslav Ivanov
aecd0f5db9 fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:10 +03:00
Vyacheslav Ivanov
52905ff27b fix: optimization: PVS-Studio warning V802
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:42:06 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
c3e4341a04
fix: optimization: PVS-Studio warning V802
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 06:12:30 +03:00
Vyacheslav Ivanov
2c1103307f
fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
Vyacheslav Ivanov
f3f872c7a3
fix: optimization: PVS-Studio warning V831
Replaced 'at()' method with 'operator[]' to improve performance.

The 'at()' method performs bounds checking, which can introduce overhead. Using 'operator[]' bypasses this check and can improve performance when you are certain that the index is within bounds.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
Vyacheslav Ivanov
5dd7a15c09
fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
MihailRis
71e20ff805 add block 'ambient-occlusion' property 2024-07-27 18:37:18 +03:00
MihailRis
eedce588b1 move class Clock to a separate unit 2024-07-19 20:49:04 +03:00
Pugemon
e98fb9a1a7 Optimize container insertions using emplace_back instead of push_back 2024-06-07 04:43:27 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
c94d40ab02 toml parser update + 'toml' module is built-in now 2024-05-20 01:28:42 +03:00
MihailRis
8ee493dbda Merge branch 'main' into devtools 2024-05-17 15:47:25 +03:00
MihailRis
8ff629e1cd minor refactor 2024-05-17 15:46:54 +03:00
MihailRis
c63d350ad5 Merge branch 'main' into devtools 2024-05-12 11:00:42 +03:00
MihailRis
548c55fced luaL_error use replaced with c++ exceptions 2024-05-12 11:00:11 +03:00
MihailRis
c2ea0d5326 lua console library 2024-05-10 23:35:46 +03:00
MihailRis
9522aedeec quick check with linters 2024-05-10 12:34:05 +03:00
MihailRis
097fb5c4d8 removed some test code 2024-05-07 22:38:38 +03:00
MihailRis
7c8591bb65 args parser fix 2024-05-07 22:32:53 +03:00
MihailRis
d1b977971f args dump 2024-05-07 22:25:05 +03:00
MihailRis
3c6089225f cleanup 2024-05-06 17:35:05 +03:00