98 Commits

Author SHA1 Message Date
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
MihailRis
1627e21c1d the final rename 2024-05-06 03:38:19 +03:00
MihailRis
f27a418dbe however 2024-05-06 03:15:27 +03:00
MihailRis
ba885e4e08 input.add_callback 2024-05-05 06:49:17 +03:00
MihailRis
9b843817f8 redundancy reduced 2024-04-30 14:49:55 +03:00
MihailRis
788bd6bf0f numeric setting value display fix 2024-04-28 19:03:54 +03:00
MihailRis
b1a79e3a6e block.material + minor refactor 2024-04-25 05:12:45 +03:00
MihailRis
051f0b8c6a rename 2024-04-23 18:43:02 +03:00
MihailRis
67f34ceb8c minor refactor 2024-04-23 16:45:29 +03:00
MihailRis
7415726e47 fixes 2024-04-22 19:34:24 +03:00
MihailRis
5b82b18c6f settings observers lifecycle 2024-04-22 19:10:36 +03:00
MihailRis
cc58ea29bc world converter threading 2024-04-15 19:44:21 +03:00
MihailRis
0cbaa1ccc6 BufferPool docs + fix 2024-04-15 00:55:35 +03:00
MihailRis
4e5f6a5a7d BufferPool 2024-04-15 00:31:19 +03:00
MihailRis
a7a447552e idk 2024-04-14 22:50:35 +03:00
MihailRis
90d0b54a69 thread pool update + refactor 2024-04-11 15:48:27 +03:00
MihailRis
216e38e411 missing include fix 2024-04-08 14:40:48 +03:00