mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 21:32:31 +02:00
REmoving problematic timers for mac
This commit is contained in:
parent
9332f82d54
commit
cfa51ae1f5
3 changed files with 6 additions and 8 deletions
|
@ -15,7 +15,11 @@ using namespace gpu;
|
|||
using namespace gpu::gl;
|
||||
|
||||
// Eventually, we want to test with TIME_ELAPSED instead of TIMESTAMP
|
||||
#ifdef Q_OS_MAC
|
||||
static bool timeElapsed = true;
|
||||
#else
|
||||
static bool timeElapsed = false;
|
||||
#endif
|
||||
|
||||
void GLBackend::do_beginQuery(Batch& batch, size_t paramOffset) {
|
||||
auto query = batch._queries.get(batch._params[paramOffset]._uint);
|
||||
|
|
|
@ -100,7 +100,7 @@ RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) {
|
|||
// GPU jobs: Start preparing the primary, deferred and lighting buffer
|
||||
const auto primaryFramebuffer = addJob<PreparePrimaryFramebuffer>("PreparePrimaryBuffer");
|
||||
|
||||
const auto fullFrameRangeTimer = addJob<BeginGPURangeTimer>("BeginRangeTimer");
|
||||
// const auto fullFrameRangeTimer = addJob<BeginGPURangeTimer>("BeginRangeTimer");
|
||||
const auto opaqueRangeTimer = addJob<BeginGPURangeTimer>("BeginOpaqueRangeTimer");
|
||||
|
||||
const auto prepareDeferredInputs = PrepareDeferred::Inputs(primaryFramebuffer, lightingModel).hasVarying();
|
||||
|
@ -209,7 +209,7 @@ RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) {
|
|||
// Blit!
|
||||
addJob<Blit>("Blit", primaryFramebuffer);
|
||||
|
||||
addJob<EndGPURangeTimer>("RangeTimer", fullFrameRangeTimer);
|
||||
// addJob<EndGPURangeTimer>("RangeTimer", fullFrameRangeTimer);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -72,12 +72,6 @@ Item {
|
|||
label: "tone and post",
|
||||
color: "#FF0000"
|
||||
}
|
||||
,{
|
||||
object: Render.getConfig("RangeTimer"),
|
||||
prop: "gpuTime",
|
||||
label: "FrameGPU",
|
||||
color: "#FFFF00"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue