Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <bartosz.taudul@game-lion.com>2018-06-22 17:34:51 +0300
committerBartosz Taudul <bartosz.taudul@game-lion.com>2018-06-22 17:34:51 +0300
commitaf0c64c8884a18ac121d2a3485e47612ad103af6 (patch)
tree7c38093dda428a5dc9d98ed18e782e1db1dac768 /TracyOpenGL.hpp
parent62267399bc3fde52ce3c48705f35e55dbba580e9 (diff)
Remove GPU resync support.
The whole concept is not really reliable. And it forces CPU to GPU sync, which is bad.
Diffstat (limited to 'TracyOpenGL.hpp')
-rw-r--r--TracyOpenGL.hpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/TracyOpenGL.hpp b/TracyOpenGL.hpp
index ae0d59ed..9c0489ea 100644
--- a/TracyOpenGL.hpp
+++ b/TracyOpenGL.hpp
@@ -122,19 +122,6 @@ public:
tail.store( magic + 1, std::memory_order_release );
m_tail = ( m_tail + 1 ) % QueryCount;
}
-
- {
- int64_t tgpu;
- glGetInteger64v( GL_TIMESTAMP, &tgpu );
- int64_t tcpu = Profiler::GetTime();
-
- auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic );
- MemWrite( &item->hdr.type, QueueType::GpuResync );
- MemWrite( &item->gpuResync.cpuTime, tcpu );
- MemWrite( &item->gpuResync.gpuTime, tgpu );
- MemWrite( &item->gpuResync.context, m_context );
- tail.store( magic + 1, std::memory_order_release );
- }
}
private: