205 Commits

Author SHA1 Message Date
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
7fbd32b8df
fix: optimization: PVS-Studio warning V823
Replaced 'push_back' with 'emplace_back' for better performance in containers.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:53 +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
c0ba5be458 add framerate control 2024-07-28 22:31:27 +03:00
MihailRis
a856b4f140 add framerate control (WIP) 2024-07-25 22:33:21 +03:00
MihailRis
18d473b673 improve parsing error alert 2024-07-24 17:11:43 +03:00
MihailRis
7c6d620560 add setting camera.inertia & add display settings menu page 2024-07-15 14:23:31 +03:00
MihailRis
24ecb94942 fix cameras loading 2024-07-12 00:20:22 +03:00
MihailRis
9623f35862 feat: world files resources file loading 2024-07-11 23:48:13 +03:00
MihailRis
45c4da048c feat: saving/loading resource entries 2024-07-11 21:56:27 +03:00
MihailRis
f4d3e62b3f add chunk 'entities' flag 2024-07-05 23:26:17 +03:00
MihailRis
c8666910ce feat: loading entities (WIP) 2024-07-05 22:51:03 +03:00
MihailRis
f0270d3391 feat: saving entities (WIP) 2024-07-05 05:16:31 +03:00
MihailRis
f135896683 add entities indexing 2024-06-26 18:14:04 +03:00
MihailRis
ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
MihailRis
20ef11e5a2 add bytearray:append(b) 2024-06-16 21:00:50 +03:00
MihailRis
607d30fd33 fix: WorldRegions (issue #239) 2024-06-13 00:26:54 +03:00
MihailRis
166c340098 add automatic 'content' folder creation 2024-06-08 10:03:16 +03:00
MihailRis
d292ef130c
Merge pull request #235 from MihailRis/blocks_meta
WorldRegions refactor
2024-06-07 14:54:45 +03:00
MihailRis
14911aa30f remove old bindings format support 2024-06-07 14:13:49 +03:00
MihailRis
c67e4b04bb refactor: WorldRegions and chunks saving 2024-06-07 14:04:25 +03:00
MihailRis
40746043ee Merge branch 'main' into blocks_meta 2024-06-07 10:28:45 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
86bbece599 Merge branch 'main' into blocks_meta 2024-06-06 12:23:20 +03:00
MihailRis
57fd91b417 file.exists, ... completely nothrow 2024-06-03 18:23:00 +03:00
MihailRis
4e2ba865f3 controls.json -> controls.toml 2024-06-02 22:10:39 +03:00
MihailRis
3003386670 chunk flags converted to a bitfield 2024-05-31 11:59:12 +03:00
MihailRis
74042b5c2a player.get_selected_block 2024-05-31 08:33:37 +03:00
MihailRis
96593bdb5d minor refactor 2024-05-28 18:49:03 +03:00
MihailRis
db071982c9 memory-related refactor 2024-05-28 05:17:56 +03:00
MihailRis
fd87fbe7f0 memory-related refactor 2024-05-28 03:52:13 +03:00
MihailRis
0ad3dd7ab8 build time decreased 2024-05-23 02:05:08 +03:00
MihailRis
66476ee642 bindings.toml, config/bindings.toml file 2024-05-20 04:06:49 +03:00
MihailRis
7fdacffe53 json-related refactor 2024-05-20 03:06:26 +03:00
MihailRis
b15d234a88 added file.list function 2024-05-12 13:49:23 +03:00
MihailRis
9522aedeec quick check with linters 2024-05-10 12:34:05 +03:00
MihailRis
a4c21984d5 dynamic::Value simplified 2024-05-07 18:39:12 +03:00
MihailRis
8e83a07094 'dynamic' namespace refactor (step 2) 2024-05-07 17:03:04 +03:00
MihailRis
d33edd4cd9 'dynamic' namespace refactor (step 1/2) 2024-05-07 16:00:52 +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
7f8a86b740 minor refactor 2024-05-05 20:08:25 +03:00
MihailRis
75e56ebd83 audio listener configuration fix 2024-05-05 19:51:14 +03:00
MihailRis
5fcefaf52e missing includes 2024-05-05 16:31:14 +03:00
MihailRis
179d2b7a25 settings reader fix 2024-05-05 16:04:00 +03:00
MihailRis
9b843817f8 redundancy reduced 2024-04-30 14:49:55 +03:00
MihailRis
83e7cedffe gcc warning fix 2024-04-29 01:17:56 +03:00
MihailRis
167388aefb track-width fixes 2024-04-28 20:09:55 +03:00
MihailRis
c3b5576c02 toml::Wrapper removed 2024-04-28 17:23:52 +03:00
MihailRis
a71314bdad Chunks::saveAndClear() fix (F5 fix) 2024-04-26 16:13:07 +03:00