mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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 "RenderableZoneEntityItem.h"
|
||||
|
||||
// uncomment WANT_DETAILED_PROFILING to see some of the interesting profiling contexts
|
||||
//#define WANT_DETAILED_PROFILING
|
||||
|
||||
using namespace render;
|
||||
using namespace render::entities;
|
||||
|
||||
|
@ -271,7 +274,9 @@ void EntityRenderer::removeFromScene(const ScenePointer& scene, Transaction& tra
|
|||
}
|
||||
|
||||
void EntityRenderer::updateInScene(const ScenePointer& scene, Transaction& transaction) {
|
||||
#ifdef WANT_DETAILED_PROFILING
|
||||
PROFILE_RANGE(simulation_physics, __FUNCTION__);
|
||||
#endif
|
||||
if (!isValidRenderItem()) {
|
||||
return;
|
||||
}
|
||||
|
@ -331,7 +336,9 @@ bool EntityRenderer::needsRenderUpdateFromEntity(const EntityItemPointer& entity
|
|||
}
|
||||
|
||||
void EntityRenderer::doRenderUpdateSynchronous(const ScenePointer& scene, Transaction& transaction, const EntityItemPointer& entity) {
|
||||
#ifdef WANT_DETAILED_PROFILING
|
||||
PROFILE_RANGE(simulation_physics, __FUNCTION__);
|
||||
#endif
|
||||
withWriteLock([&] {
|
||||
auto transparent = isTransparent();
|
||||
if (_prevIsTransparent && !transparent) {
|
||||
|
|
Loading…
Reference in a new issue