mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 09:55:22 +02:00
Finer progress bar updates when initializing nodes
The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
This commit is contained in:
@@ -378,7 +378,9 @@ public:
|
||||
/*
|
||||
Update tile textures to latest return values of TextueSource.
|
||||
*/
|
||||
virtual void updateTextures(IGameDef *gamedef)=0;
|
||||
virtual void updateTextures(IGameDef *gamedef,
|
||||
/*argument: */void (*progress_callback)(void *progress_args, u32 progress, u32 max_progress),
|
||||
/*argument: */void *progress_callback_args)=0;
|
||||
|
||||
virtual void serialize(std::ostream &os, u16 protocol_version)=0;
|
||||
virtual void deSerialize(std::istream &is)=0;
|
||||
|
Reference in New Issue
Block a user