mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
comment out more profiling stuff
This commit is contained in:
parent
102a1cb36b
commit
1f09c10fb1
1 changed files with 7 additions and 0 deletions
|
@ -26,6 +26,9 @@
|
||||||
#include "RenderableWebEntityItem.h"
|
#include "RenderableWebEntityItem.h"
|
||||||
#include "RenderableZoneEntityItem.h"
|
#include "RenderableZoneEntityItem.h"
|
||||||
|
|
||||||
|
// uncomment WANT_DETAILED_PROFILING to see some of the interesting profiling contexts
|
||||||
|
//#define WANT_DETAILED_PROFILING
|
||||||
|
|
||||||
using namespace render;
|
using namespace render;
|
||||||
using namespace render::entities;
|
using namespace render::entities;
|
||||||
|
|
||||||
|
@ -271,7 +274,9 @@ void EntityRenderer::removeFromScene(const ScenePointer& scene, Transaction& tra
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityRenderer::updateInScene(const ScenePointer& scene, Transaction& transaction) {
|
void EntityRenderer::updateInScene(const ScenePointer& scene, Transaction& transaction) {
|
||||||
|
#ifdef WANT_DETAILED_PROFILING
|
||||||
PROFILE_RANGE(simulation_physics, __FUNCTION__);
|
PROFILE_RANGE(simulation_physics, __FUNCTION__);
|
||||||
|
#endif
|
||||||
if (!isValidRenderItem()) {
|
if (!isValidRenderItem()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -331,7 +336,9 @@ bool EntityRenderer::needsRenderUpdateFromEntity(const EntityItemPointer& entity
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityRenderer::doRenderUpdateSynchronous(const ScenePointer& scene, Transaction& transaction, const EntityItemPointer& entity) {
|
void EntityRenderer::doRenderUpdateSynchronous(const ScenePointer& scene, Transaction& transaction, const EntityItemPointer& entity) {
|
||||||
|
#ifdef WANT_DETAILED_PROFILING
|
||||||
PROFILE_RANGE(simulation_physics, __FUNCTION__);
|
PROFILE_RANGE(simulation_physics, __FUNCTION__);
|
||||||
|
#endif
|
||||||
withWriteLock([&] {
|
withWriteLock([&] {
|
||||||
auto transparent = isTransparent();
|
auto transparent = isTransparent();
|
||||||
if (_prevIsTransparent && !transparent) {
|
if (_prevIsTransparent && !transparent) {
|
||||||
|
|
Loading…
Reference in a new issue