You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Optimize shared texture creation
Texture::slice_trackers is now a pointer and is allocated on demand only when a shared texture is created. This makes copying Texture significantly faster.
This commit is contained in:
@@ -319,7 +319,7 @@ public:
|
||||
RID owner;
|
||||
|
||||
RDG::ResourceTracker *draw_tracker = nullptr;
|
||||
HashMap<Rect2i, RDG::ResourceTracker *> slice_trackers;
|
||||
HashMap<Rect2i, RDG::ResourceTracker *> *slice_trackers = nullptr;
|
||||
SharedFallback *shared_fallback = nullptr;
|
||||
int32_t transfer_worker_index = -1;
|
||||
uint64_t transfer_worker_operation = 0;
|
||||
|
||||
Reference in New Issue
Block a user