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

Disable Sync Dasher

parent fa832dbd
No related branches found
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
//Double Buffers are rotated here.
void SDasherWidget::Display() {
if (URWTHVRUtilities::IsRoomMountedMode())
{
auto start = std::chrono::high_resolution_clock::now();
FDisplayClusterClusterEventBinary BinaryClusterEvent;
BinaryClusterEvent.EventData.Reserve(100000); // 100kb of data
FMemoryWriter m(BinaryClusterEvent.EventData);
m << NDisplayBuffer;
for(auto& e : *BackBuffer)
{
e->Serialize(m);
}
IDisplayCluster::Get().GetClusterMgr()->EmitClusterEventBinary(BinaryClusterEvent, false);
}
else
{
// if (URWTHVRUtilities::IsRoomMountedMode())
// {
// auto start = std::chrono::high_resolution_clock::now();
// FDisplayClusterClusterEventBinary BinaryClusterEvent;
// BinaryClusterEvent.EventData.Reserve(100000); // 100kb of data
// FMemoryWriter m(BinaryClusterEvent.EventData);
// m << NDisplayBuffer;
// for(auto& e : *BackBuffer)
// {
// e->Serialize(m);
// }
// IDisplayCluster::Get().GetClusterMgr()->EmitClusterEventBinary(BinaryClusterEvent, false);
// }
// else
// {
std::swap(FrontBuffer, BackBuffer);
BackBuffer->Empty();
......@@ -332,7 +332,7 @@ void SDasherWidget::Display() {
CharacterEnteredFlag = false;
CharacterDeletedFlag = false;
}
// }
}
//Functions for Drawing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment