Skip to content

Commit

Permalink
More indentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNakamoto committed Jan 12, 2025
1 parent 78a67bb commit fd30857
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions vtkext/private/module/vtkF3DRenderer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1547,19 +1547,19 @@ void vtkF3DRenderer::Render()

if (!uiOnly)
{
// Get CPU frame time
double elapsedTime = std::chrono::duration_cast<std::chrono::microseconds>(cpuElapsed).count() * 1e-6;
// Get CPU frame time
double elapsedTime = std::chrono::duration_cast<std::chrono::microseconds>(cpuElapsed).count() * 1e-6;

#if !defined(__ANDROID__) && !defined(__EMSCRIPTEN__)
glEndQuery(GL_TIME_ELAPSED);
GLint elapsed;
glGetQueryObjectiv(this->Timer, GL_QUERY_RESULT, &elapsed);
glEndQuery(GL_TIME_ELAPSED);
GLint elapsed;
glGetQueryObjectiv(this->Timer, GL_QUERY_RESULT, &elapsed);

// Get min between CPU frame time and GPU frame time
elapsedTime = std::min(elapsedTime, elapsed * 1e-9);
// Get min between CPU frame time and GPU frame time
elapsedTime = std::min(elapsedTime, elapsed * 1e-9);
#endif

this->UIActor->UpdateFpsValue(elapsedTime);
this->UIActor->UpdateFpsValue(elapsedTime);
}
}

Expand Down

0 comments on commit fd30857

Please sign in to comment.