mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Improve the level sending mechanism in the game.
Instead of sending a request for each chunk one by one, and in sequence, send all the level data in one block. I know this is not the best solution since we are working with UDP here, but it's way faster than loading the level chunk by chunk. In a blink of an eye, the level has already loaded.
This commit is contained in:
@@ -23,8 +23,10 @@ class UpdateBlockPacket;
|
||||
class RequestChunkPacket;
|
||||
class ChunkDataPacket;
|
||||
class PlayerEquipmentPacket;
|
||||
class LevelDataPacket;
|
||||
#include "world/level/Level.hpp"
|
||||
class Level;
|
||||
class LevelChunk;
|
||||
|
||||
class NetEventCallback
|
||||
{
|
||||
@@ -47,5 +49,6 @@ public:
|
||||
virtual void handle(const RakNet::RakNetGUID&, RequestChunkPacket*);
|
||||
virtual void handle(const RakNet::RakNetGUID&, ChunkDataPacket*);
|
||||
virtual void handle(const RakNet::RakNetGUID&, PlayerEquipmentPacket*);
|
||||
virtual void handle(const RakNet::RakNetGUID&, LevelDataPacket*);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user