History

stutter fix: only perform fade transactions when depth == 0

HifiExperiments committed 2 years ago

Commit aaa92df1 parent 43e15c013 files · +43 −105Browse files

Showing the changes to libraries/render/src/render/DrawSceneOctree.cpp (1 of 13 files). Show all

Unified · Split

libraries/render/src/render/DrawSceneOctree.cpp+4−1
@@ -30,7 +30,10 @@ gpu::PipelinePointer DrawSceneOctree::_drawItemBoundPipeline; · 29 unmodified lines
30gpu::Stream::FormatPointer DrawSceneOctree::_cellBoundsFormat = std::make_shared<gpu::Stream::Format>();30gpu::Stream::FormatPointer DrawSceneOctree::_cellBoundsFormat = std::make_shared<gpu::Stream::Format>();
31 31
32DrawSceneOctree::DrawSceneOctree() {32DrawSceneOctree::DrawSceneOctree() {
33 _cellBoundsFormat->setAttribute(0, 0, gpu::Element(gpu::VEC4, gpu::INT32, gpu::XYZW), 0, gpu::Stream::PER_INSTANCE);33 std::once_flag once;
34 std::call_once(once, [] {
35 _cellBoundsFormat->setAttribute(0, 0, gpu::Element(gpu::VEC4, gpu::INT32, gpu::XYZW), 0, gpu::Stream::PER_INSTANCE);
36 });
34}37}
35 38
36const gpu::PipelinePointer DrawSceneOctree::getDrawCellBoundsPipeline() {39const gpu::PipelinePointer DrawSceneOctree::getDrawCellBoundsPipeline() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t