93 Commits

Author SHA1 Message Date
Quentin Bazin
d385b29540 [external/gamekit] Updated.
[Vector3] Small fix.
2021-06-28 17:55:53 +02:00
Quentin Bazin
e2f288cc86 [external/gamekit] Updated. Fixed build for MSVC (VS2019).
Also fixed a lot of warning from MSVC.
2021-06-23 16:28:38 +02:00
Quentin Bazin
7da33916d9 [external/gamekit] Updated. 2021-06-12 12:33:57 +02:00
Quentin Bazin
0988d80256 Now using a VAO to render the chunks.
`apitrace` measurements (without HUD) for 2103 chunks loaded (`-s` parameter without moving):
   → 35611 OpenGL calls per frame initially
   → 7891 with VAO
   → 6353 with uniform location caching
2021-06-11 07:39:37 +02:00
Quentin Bazin
677992d93c [external/gamekit] Vertex attr layout is now handled by VertexBuffer. 2021-06-11 05:26:12 +02:00
Quentin Bazin
a5de07c03b [ClientProfilerWindow] Added. 2021-06-10 15:05:55 +02:00
Quentin Bazin
669cbf70f9 Improved support for Clang.
Fixed most of the new warnings.
2021-06-10 02:04:14 +02:00
Quentin Bazin
54b0bdcaba [ClientPlayer] Added optional view bobbing. 2021-06-09 23:35:50 +02:00
Quentin Bazin
60535e3fab [gamekit] Updated. 2021-06-09 18:37:53 +02:00
Quentin Bazin
d5f5082bb0 Added -Wconversion and fixed warnings.
This mostly forces the casts to be explicit.
2021-06-09 04:36:26 +02:00
Quentin Bazin
a9657751ed [external/sol2] Updated. 2021-06-05 17:23:13 +02:00
Quentin Bazin
2496f2e9ee Mesh building is now asynchronous.
- Added ChunkMeshBuilder to replace ChunkBuilder
- Added ThreadPool

Note: Surrounding chunks are not handled yet.
2021-06-05 17:23:13 +02:00
Quentin Bazin
46d1c4a3aa [ClientProfiler] Added.
[external/gamekit] Updated.
2021-05-22 16:14:47 +02:00
Quentin Bazin
bf7c21887d Fixed InventoryCube display. 2021-05-22 16:14:47 +02:00
Quentin Bazin
8ecd91715e No longer using string to represent vertex attr. 2021-05-22 16:14:47 +02:00
Quentin Bazin
4aa92eb337 [external/backtrace] Added backtrace printer tool. 2021-05-22 16:14:47 +02:00
Quentin Bazin
84500980fb [default/listeners.lua] Changed intro text.
[external/gamekit] Updated.
2021-05-22 16:14:47 +02:00
Quentin Bazin
8bd9e860dc [ServerWorld] Fixed render distance. 2021-05-22 16:14:47 +02:00
Quentin Bazin
ecdf504bef 2nd attempt. 2021-05-22 16:14:47 +02:00
Quentin Bazin
e4007f8085 [external/gamekit] Updated. 2020-08-01 16:38:59 +02:00
Quentin Bazin
d558cc1a08 [MenuWidget] Now stops event handling if button/slider list changed. 2020-07-30 15:23:48 +02:00
Quentin Bazin
98cf9df93e [Heightmap] Added and used in TerrainGenerator. Fixed .
[README.md] Fixed typo.
[EngineConfig] Increased pre-release version suffix.
[mods/default] Fixed furnace texture.
2020-07-29 18:01:48 +02:00
Pedro Gimeno
180123c0b7 Change calls to rotate() to calls to rotateX/Y/Z
Mostly cosmetic, but will also optimize some operations if the compiler is not smart enough.

Also fix a typo in a comment.
2020-07-29 17:28:06 +02:00
Quentin Bazin
dd8df8bf78 [external/gamekit] Updated. Probably fixed . 2020-07-29 16:36:45 +02:00
Quentin Bazin
a83e4d20bf Now saving program output to log files. 2020-07-28 20:55:49 +02:00
Pedro Gimeno
6202717443 Use gk::abs instead of defining an ABS macro 2020-07-28 11:43:47 +02:00
Quentin Bazin
8477bcaace [external/gamekit] Updated. 2020-07-25 13:24:04 +02:00
Quentin Bazin
255190bde3 [external/gamekit] Updated. 2020-07-25 03:09:38 +02:00
Quentin Bazin
54ffc2c33d [Block] 'custom_param_bits' attribute added. Fixed . 2020-07-25 01:42:05 +02:00
Quentin Bazin
c96aef94c1 [external/gamekit] Updated. 2020-07-25 01:08:21 +02:00
Quentin Bazin
c518334e5b [GameState] Fixed . 2020-07-25 00:25:50 +02:00
Quentin Bazin
e85c5f3458 Small fixes. 2020-07-24 19:59:35 +02:00
Quentin Bazin
c4feb73b2a Small fixes. 2020-07-21 22:36:56 +02:00
Quentin Bazin
9c5f1b9374 [CelestialObject] Fixed rendering on Windows and Debian, maybe. (see ) 2020-07-20 16:43:07 +02:00
Quentin Bazin
556941f553 [GameTime] Tick system added.
[ChatCommandHandler] Added '/tps' command to get ticks per second.
[ServerWorld] Fixed world generation speed.
2020-07-17 19:58:45 +02:00
Quentin Bazin
b47fbc9d18 [Skybox] Now uses its own shader. 2020-07-17 19:58:45 +02:00
Quentin Bazin
5a32ffcae3 [ItemWidget] Now updates images when the texture pack changes. 2020-07-14 23:49:50 +02:00
Quentin Bazin
468bdc0dce [ClientApplication] Small fix. 2020-07-13 23:31:18 +02:00
Quentin Bazin
69e4dbba17 Fixed Windows build. 2020-07-13 23:25:04 +02:00
Quentin Bazin
658dd1b0d6 [external/gamekit] Updated. 2020-07-13 15:30:51 +02:00
Quentin Bazin
d01481fdf5 [misc/deploy.sh] Small fixes. 2020-07-13 14:57:30 +02:00
Quentin Bazin
02b9f8b283 Now using LuaJIT. Closed . 2020-07-09 02:40:21 +02:00
Quentin Bazin
4421f8258d [GameState] Now possible to take a screenshot by pressing F2 in-game. 2020-07-08 04:04:29 +02:00
Quentin Bazin
43c28b4e68 [mods/default] Fixed some textures. 2020-07-08 00:40:27 +02:00
Quentin Bazin
bb234ac4d8 [ClientWorld] Removed SFML-specific fix. 2020-07-08 00:12:22 +02:00
Quentin Bazin
5bb5b44ff4 [main] DPI awareness code added back to the project. 2020-07-08 00:12:22 +02:00
Quentin Bazin
1a4227a580 [gamekit] Updated. Menu background fixed. [Config] Now creating 'config' folder if it doesn't exist yet. 2020-07-08 00:12:22 +02:00
Quentin Bazin
b6f531af12 [TextureAtlas] Updated for SDL. 2020-07-08 00:12:22 +02:00
Quentin Bazin
c9b7990c3c First step of SDL2 migration. 2020-07-08 00:12:22 +02:00
Quentin Bazin
3a325c74ff Added '-l/--log-level' to set log level. 2020-07-05 18:03:13 +02:00