Commit Graph
107 Commits
Author SHA1 Message Date
MihailRis 0b3bb36188 update byte_utils 2024-09-04 15:41:51 +03:00
MihailRis c15abfa715 add util::Buffer, rle::encode16, rle::decode16 2024-09-03 23:33:29 +03:00
MihailRis 7d193941a4 add /coders/compression module 2024-09-01 21:58:33 +03:00
MihailRis bcd6f40ddb rename StructMapping to StructLayout 2024-08-29 18:56:26 +03:00
MihailRis d0bc679815 update SmallHeap docs 2024-08-29 17:07:08 +03:00
MihailRis 4343e81e00 fix utf-8 decoder & add u32string functions 2024-08-29 15:09:27 +03:00
MihailRis 25bdcc8e1b add util::crop_utf8 (stringutil) 2024-08-29 13:01:32 +03:00
MihailRis 2b1db0b075 fix 2024-08-29 11:51:33 +03:00
MihailRis 9b87071f24 add byteorder-related functions to data_io.hpp 2024-08-29 11:37:05 +03:00
MihailRis cf99996b24 add util::SmallHeap 2024-08-12 22:07:25 +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 IvanovandMihailRis 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 IvanovandMihailRis 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 IvanovandMihailRis 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
MihailRisandGitHub 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