mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector
This commit is contained in:
parent
56bf867874
commit
35ec3855f6
4 changed files with 49 additions and 78 deletions
|
@ -492,7 +492,7 @@ public:
|
|||
// Get event from queue. CEE_NONE is returned if queue is empty.
|
||||
ClientEnvEvent getClientEvent();
|
||||
|
||||
std::vector<core::vector2d<int> > attachment_list; // X is child ID, Y is parent ID
|
||||
u16 m_attachements[USHRT_MAX];
|
||||
|
||||
std::list<std::string> getPlayerNames()
|
||||
{ return m_player_names; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue