Commit Graph
58 Commits
Author SHA1 Message Date
MihailRis 78e274dec4 fix frustum culling for entities 2024-08-03 17:41:03 +03:00
Vyacheslav IvanovandMihailRis e399e95930 fix: render: Fix WorldRenderer::renderBlockSelection
Block selection clears before new selection be drawn
Added a call to LineBatch::flush() to ensure that all buffered data is correctly uploaded to the GPU and rendered. The missing flush() was causing rendering artifacts, such as flickering of block outlines, which has now been resolved by ensuring that all accumulated data is processed and rendered properly.
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 15:13:22 +03:00
MihailRisandGitHub ba046a52c0 Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov 3a78746185 fix: render: Fix WorldRenderer::renderBlockSelection
Block selection clears before new selection be drawn
Added a call to LineBatch::flush() to ensure that all buffered data is correctly uploaded to the GPU and rendered. The missing flush() was causing rendering artifacts, such as flickering of block outlines, which has now been resolved by ensuring that all accumulated data is processed and rendered properly.
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 07:46:13 +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 6b3146f98a fix: optimization: PVS-Studio warning V821
Creating variables in a more localized scope can enhance performance and make the code easier to understand.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35: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 f8907f7db1 add on_update, on_render to docs & change entities tps to 20 2024-08-01 16:04:27 +03:00
MihailRis 3590bd14cd update DrawContext 2024-07-21 16:06:40 +03:00
MihailRis cf12338a32 add skeleton debug view 2024-07-21 14:52:16 +03:00
MihailRis 0c4cdeaa87 add entities renderer tint support 2024-07-20 19:35:43 +03:00
MihailRis 2c1adcedbd fix u_timer behaviour when paused 2024-07-18 13:50:57 +03:00
MihailRis 4aa76e35b7 add on_hud_render event 2024-07-12 09:17:53 +03:00
MihailRis 690b8f4807 fix: on_render called while paused 2024-07-08 22:56:22 +03:00
MihailRis 5522cfc231 add "Show Hitboxes" to the debug panel 2024-07-06 05:36:16 +03:00
MihailRis 5769be8ec8 add triggers 2024-06-30 16:25:08 +03:00
MihailRis ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
MihailRis f3c5afa1ab add debug hitboxes render 2024-06-25 20:11:46 +03:00
MihailRis 69ddcb7595 add test model 2024-06-24 01:05:28 +03:00
MihailRis ba458be334 add test entities prototype 2024-06-23 22:09:04 +03:00
MihailRis 30ac1a58ee remove test code 2024-06-23 02:05:13 +03:00
MihailRis 94fe5eeb5b update ModelBatch semantics 2024-06-23 01:57:28 +03:00
MihailRis d54b6b2e58 update Assets container - template-based now 2024-06-22 22:30:14 +03:00
MihailRis 848d121099 remove test code 2024-06-22 21:35:21 +03:00
MihailRis e4f9bd03b7 add src/coders/obj 2024-06-22 20:24:35 +03:00
MihailRis a9640fff36 add ModelBatch.translate(...), .rotate(...), .scale(...) 2024-06-21 20:55:14 +03:00
MihailRis 1a12a6923a remove ModelBatch.test(...) 2024-06-21 19:19:20 +03:00
MihailRis 6ba38ee167 add graphics/core/Model 2024-06-21 02:30:35 +03:00
MihailRis 57a0377b36 fix ModelBatch overflow 2024-06-20 21:54:06 +03:00
MihailRis 3235740333 add actual lights 2024-06-20 21:18:40 +03:00
MihailRis 3d2deaf369 add ModelBatch pseudo-lights 2024-06-20 20:15:03 +03:00
MihailRis 6d6313cd10 add ModelBatch 2024-06-20 19:45:19 +03:00
MihailRis 4e696520b6 refactor: PlayerController 2024-06-09 16:30:01 +03:00
MihailRis 3003386670 chunk flags converted to a bitfield 2024-05-31 11:59:12 +03:00
MihailRis 5dd06b233e u_timer in the main shader 2024-05-31 08:46:05 +03:00
MihailRis 74042b5c2a player.get_selected_block 2024-05-31 08:33:37 +03:00
MihailRis 29ca6e969c fix: block states cause crash for rotatable blocks 2024-05-30 18:17:21 +03:00
MihailRis c9fb33132f weather is saving now 2024-05-30 16:02:01 +03:00
MihailRis 693f50eb87 minor refactor 2024-05-17 23:21:37 +03:00
MihailRis a93906d0f1 small optimization 2024-05-17 21:30:01 +03:00
MihailRis b399679c31 other optimizations 2024-05-17 20:00:24 +03:00
MihailRis 8c918ff136 chunks sorting speed increased 4x times 2024-05-17 19:37:15 +03:00
MihailRis 9522aedeec quick check with linters 2024-05-10 12:34: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 6b037ec7e8 hpp+ 2024-05-06 01:27:24 +03:00
MihailRis 7f8a86b740 minor refactor 2024-05-05 20:08:25 +03:00
MihailRis 5fcefaf52e missing includes 2024-05-05 16:31:14 +03:00
MihailRis bcf2f5029d GfxContext renamed to DrawContext 2024-04-30 00:31:13 +03:00
MihailRis c3b5576c02 toml::Wrapper removed 2024-04-28 17:23:52 +03:00