Skip to content
Snippets Groups Projects
Commit a6342d9e authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Disable Sync Dasher

parent fa832dbd
Branches
No related tags found
1 merge request!2Backporting many features from the study on top of the Dasher3D-Core
...@@ -299,24 +299,24 @@ std::pair<SDasherWidget::screenint, SDasherWidget::screenint> SDasherWidget::Tex ...@@ -299,24 +299,24 @@ std::pair<SDasherWidget::screenint, SDasherWidget::screenint> SDasherWidget::Tex
//Double Buffers are rotated here. //Double Buffers are rotated here.
void SDasherWidget::Display() { void SDasherWidget::Display() {
if (URWTHVRUtilities::IsRoomMountedMode()) // if (URWTHVRUtilities::IsRoomMountedMode())
{ // {
auto start = std::chrono::high_resolution_clock::now(); // auto start = std::chrono::high_resolution_clock::now();
FDisplayClusterClusterEventBinary BinaryClusterEvent; // FDisplayClusterClusterEventBinary BinaryClusterEvent;
BinaryClusterEvent.EventData.Reserve(100000); // 100kb of data // BinaryClusterEvent.EventData.Reserve(100000); // 100kb of data
FMemoryWriter m(BinaryClusterEvent.EventData); // FMemoryWriter m(BinaryClusterEvent.EventData);
m << NDisplayBuffer; // m << NDisplayBuffer;
for(auto& e : *BackBuffer) // for(auto& e : *BackBuffer)
{ // {
e->Serialize(m); // e->Serialize(m);
} // }
IDisplayCluster::Get().GetClusterMgr()->EmitClusterEventBinary(BinaryClusterEvent, false); // IDisplayCluster::Get().GetClusterMgr()->EmitClusterEventBinary(BinaryClusterEvent, false);
} // }
else // else
{ // {
std::swap(FrontBuffer, BackBuffer); std::swap(FrontBuffer, BackBuffer);
BackBuffer->Empty(); BackBuffer->Empty();
...@@ -332,7 +332,7 @@ void SDasherWidget::Display() { ...@@ -332,7 +332,7 @@ void SDasherWidget::Display() {
CharacterEnteredFlag = false; CharacterEnteredFlag = false;
CharacterDeletedFlag = false; CharacterDeletedFlag = false;
} // }
} }
//Functions for Drawing //Functions for Drawing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment