REmoving problematic timers for mac

This commit is contained in:
samcake 2016-07-17 18:32:43 -07:00
parent 9332f82d54
commit cfa51ae1f5
3 changed files with 6 additions and 8 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -72,12 +72,6 @@ Item {
label: "tone and post",
color: "#FF0000"
}
,{
object: Render.getConfig("RangeTimer"),
prop: "gpuTime",
label: "FrameGPU",
color: "#FFFF00"
}
]
}
}