Commit Graph

1308 Commits (master)

Author SHA1 Message Date
Quentin Bazin ebe9887ecf [ChunkLightmap] Removed useless lines.
It doesn't seem the engine needs to revert addSunlight anymore, but it may be subject to change, so I removed it as long as I don't see another problem.
2021-05-22 16:14:47 +02:00
Quentin Bazin e15dbcc6e5 Cleaned useless commented code. 2021-05-22 16:14:47 +02:00
Quentin Bazin 8d728a6ce5 [ClientChunk] Cleaned useless code. 2021-05-22 16:14:47 +02:00
Quentin Bazin 2ff5490efd [Minimap] Now allows switching mode with 'M' key. 2021-05-22 16:14:47 +02:00
Quentin Bazin 46d1c4a3aa [ClientProfiler] Added.
[external/gamekit] Updated.
2021-05-22 16:14:47 +02:00
Quentin Bazin 95a804d9fc [World] Performance fix (for MinGW). 2021-05-22 16:14:47 +02:00
Quentin Bazin 758813a35d [EngineConfig] Bump VERSION_SUFFIX to 'pre8'. 2021-05-22 16:14:47 +02:00
Quentin Bazin 03a932c2c4 [ServerWorld] Added a timeout to chunk request queue loop.
Also added a 10 sec timeout on individual chunk requests.
2021-05-22 16:14:47 +02:00
Quentin Bazin a43c24b3de [ClientWorld] Removed debug message.
When placing a block, this message was sent everytime since local and remote chunk match.
2021-05-22 16:14:47 +02:00
Quentin Bazin e763330597 Fixed sunlight update. 2021-05-22 16:14:47 +02:00
Quentin Bazin bf7c21887d Fixed InventoryCube display. 2021-05-22 16:14:47 +02:00
Quentin Bazin fa194fd9e2 Fixed dimension change. 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 bfc78434f5 [ClientChunk] Only start meshing if all neighbours are initialized. 2021-05-22 16:14:47 +02:00
Quentin Bazin d6d5717a43 [ServerWorld] Chunk send requests seems to be working. 2021-05-22 16:14:47 +02:00
Quentin Bazin 199be908ae [ServerWorld] Tried to improve chunk sending. 2021-05-22 16:14:47 +02:00
Quentin Bazin 0144b928b3 [ServerChunk] Only update light with all neighbours.
Also wait for m_readyToSend to be true.
2021-05-22 16:14:47 +02:00
Quentin Bazin 1ea2c350e4 [ClientWorld] Now removes far uninitialized chunks. 2021-05-22 16:14:47 +02:00
Quentin Bazin e84cf25fdb [DebugLightmapViewer] Added. 2021-05-22 16:14:47 +02:00
Quentin Bazin b6cf7bd4ad ChunkLightmap::updateLights() no longer returns a boolean.
Updating lights will already enable hasChanged flag of the correct chunks if needed.
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 eaae61f01b Attempting to remove the big loops in ClientWorld and ServerWorld. 2021-05-22 16:14:47 +02:00
Quentin Bazin bc5e9bc2c7 Improved server-side player chunk management.
- [ServerCommandHandler] Now handling PlayerChunkPosUpdate.
- [ServerChunk] sendChunkData moved from ServerWorld.
- [ServerWorld] Now using PlayerChunkPosUpdate instead of the old loop.
2021-05-22 16:14:47 +02:00
Quentin Bazin 5bdacba397 [ClientPlayer] Now sending PlayerChunkPosUpdate. 2021-05-22 16:14:47 +02:00
Quentin Bazin 6f97f53416 [ServerWorld] Fixed holes in the world. 2021-05-22 16:14:47 +02:00
Quentin Bazin dd9b56f66d [ServerWorld] Now sending ChunkUnload when needed. 2021-05-22 16:14:47 +02:00
Quentin Bazin 25569da358 [ClientWorld] Client still needs to remove empty chunks it creates. 2021-05-22 16:14:47 +02:00
Quentin Bazin ee03d64254 [PlayerList] Now clearing player loaded chunks when disconnecting. 2021-05-22 16:14:47 +02:00
Quentin Bazin 0f993e9dbf [ClientWorld] Client is no longer in charge of removing chunks. 2021-05-22 16:14:47 +02:00
Quentin Bazin 22ef44e12c Moved ChunkUnload sending from client to server. 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 b687c6850c Best working version. 2021-05-22 16:14:47 +02:00
Quentin Bazin be4ff6c9da Various fixes. 2021-05-22 16:14:47 +02:00
Quentin Bazin 4f5c545883 [ClientChunk] Added a timer to limit chunk updates. [ClientWorld] Improved the way cfar chunks are removed. 2021-05-22 16:14:47 +02:00
Quentin Bazin 6bc5c79b32 [ClientWorld] Renamed 'isChunkRequested' to 'isReadyForMeshing'. 2021-05-22 16:14:47 +02:00
Quentin Bazin 7921f2281a Fixed incomplete trees. 2021-05-22 16:14:47 +02:00
Quentin Bazin b4f210de3a Seems to be working, but some trees are incomplete. 2021-05-22 16:14:47 +02:00
Quentin Bazin b3b00038eb Closest thing to a working version. Still have holes when flying a few chunks away. 2021-05-22 16:14:47 +02:00
Quentin Bazin 4fe4b60aea [ServerWorld] Chunks are now sent correctly. 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 4f94894702 [ServerWorld] Fixed infinite loop. 2021-05-22 16:14:47 +02:00
Quentin Bazin ecdf504bef 2nd attempt. 2021-05-22 16:14:47 +02:00
Quentin Bazin 707e2b38c4 [ClientPlayer] Now allows moving in unloaded chunks with 'no clip'. [LuaCore] Useless include removed. 2020-12-29 04:07:31 +01:00
Quentin Bazin b1f0289d9e [.vscode] Added. 2020-08-01 18:12:00 +02:00
Quentin Bazin ca27a8823c [MenuWidget] Now using std::deque instead of std::vector.
Fixed a crash when triggering fullscreen mode while in Settings -> Graphics
I was keeping a TextButton pointer, but only std::deque ensures pointer validity

This bug only appeared with Visual Studio 2019
2020-08-01 17:04:09 +02:00
Quentin Bazin e4007f8085 [external/gamekit] Updated. 2020-08-01 16:38:59 +02:00
Quentin Bazin d4f196772e [ChunkBuilder] Small refactor. 2020-07-31 19:27:28 +02:00
Quentin Bazin fc29b17188 [ServerCommandHandler] Small fix. 2020-07-31 19:27:13 +02:00
Quentin Bazin 542b9277f8 [SettingsMenuState] Now disabling 'Resolution' button when fullscreen mode is enabled. Also updates resolution button text on window resize. 2020-07-31 17:58:00 +02:00
Quentin Bazin 36bcbf2aee [ServerCommandHandler] Spawn area is 16x16 chunks instead of a single chunk. 2020-07-31 17:24:02 +02:00