Skip to content
Snippets Groups Projects
Commit 074c1f1d authored by Richard Linden's avatar Richard Linden
Browse files

SH-3931 WIP Interesting: Add graphs to visualize scene load metrics

made LLCopyOnWritePointer enforce write access through write() again
disabled some error checking on release for download builds
parent 9ae76d12
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,9 @@ class LLCopyOnWritePointer : public LLPointer<Type> ...@@ -196,6 +196,9 @@ class LLCopyOnWritePointer : public LLPointer<Type>
*(pointer_t*)(this) = new Type(*pointer_t::mPointer); *(pointer_t*)(this) = new Type(*pointer_t::mPointer);
} }
} }
const Type* operator->() const { return pointer_t::mPointer; }
const Type& operator*() const { return *pointer_t::mPointer; }
}; };
#endif #endif
...@@ -175,10 +175,12 @@ class AccumulatorBuffer : public LLRefCount ...@@ -175,10 +175,12 @@ class AccumulatorBuffer : public LLRefCount
// NOTE: this is not thread-safe. We assume that slots are reserved in the main thread before any child threads are spawned // NOTE: this is not thread-safe. We assume that slots are reserved in the main thread before any child threads are spawned
size_t reserveSlot() size_t reserveSlot()
{ {
#ifndef LL_RELEASE_FOR_DOWNLOAD
if (LLTrace::isInitialized()) if (LLTrace::isInitialized())
{ {
llerrs << "Attempting to declare trace object after program initialization. Trace objects should be statically initialized." << llendl; llerrs << "Attempting to declare trace object after program initialization. Trace objects should be statically initialized." << llendl;
} }
#endif
size_t next_slot = sNextStorageSlot++; size_t next_slot = sNextStorageSlot++;
if (next_slot >= mStorageSize) if (next_slot >= mStorageSize)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment