VPS
Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 331 vs 348 for /trunk/Source Code/Rendering/ForwardPlusRenderer.cpp

Diff revisions: vs.
  @@ -1,5 +1,6 @@
1 1 #include "Headers/ForwardPlusRenderer.h"
2 2
3 + #include "Core/Headers/Console.h"
3 4 #include "Managers/Headers/LightManager.h"
4 5 #include "Core/Resources/Headers/ResourceCache.h"
5 6
  @@ -7,8 +8,8 @@
7 8
8 9 ForwardPlusRenderer::ForwardPlusRenderer() : Renderer(RENDERER_FORWARD_PLUS)
9 10 {
10 - _opaqueGrid = MemoryManager_NEW LightGrid();
11 - _transparentGrid = MemoryManager_NEW LightGrid();
11 + _opaqueGrid.reset(/*MemoryManager_NEW*/new LightGrid());
12 + _transparentGrid.reset(/*MemoryManager_NEW*/new LightGrid());
12 13 /// Initialize our depth ranges construction shader (see LightManager.cpp for more documentation)
13 14 ResourceDescriptor rangesDesc("DepthRangesConstruct");
14 15
  @@ -41,9 +42,7 @@
41 42
42 43 ForwardPlusRenderer::~ForwardPlusRenderer()
43 44 {
44 - MemoryManager::DELETE( _depthRanges );
45 - MemoryManager::DELETE( _opaqueGrid );
46 - MemoryManager::DELETE( _transparentGrid );
45 + MemoryManager::DELETE(_depthRanges);
47 46 RemoveResource(_depthRangesConstructProgram);
48 47 }
49 48
  @@ -98,7 +97,8 @@
98 97 downSampleDepthBuffer(_depthRangesCache);
99 98 // We take a copy of this, and prune the grid using depth ranges found from pre-z pass
100 99 // (for opaque geometry).
101 - _opaqueGrid = _transparentGrid;
100 + STUBBED("ADD OPTIMIZED COPY!!!");
101 + *_opaqueGrid = *_transparentGrid;
102 102 // Note that the pruning does not occur if the pre-z pass was not performed
103 103 // (depthRanges is empty in this case).
104 104 _opaqueGrid->prune(_depthRangesCache);