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:
parent
30bb49ec1f
commit
6413a8a94b
2 changed files with 16 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue