Skip to content

[Geomagic] Fix crash when drawDevice is set to true and add option to log haptic thread speed#5850

Merged
hugtalbot merged 5 commits intosofa-framework:masterfrom
epernod:inf_2026_02-fixGeomagicVisual
Jan 15, 2026
Merged

[Geomagic] Fix crash when drawDevice is set to true and add option to log haptic thread speed#5850
hugtalbot merged 5 commits intosofa-framework:masterfrom
epernod:inf_2026_02-fixGeomagicVisual

Conversation

@epernod
Copy link
Copy Markdown
Contributor

@epernod epernod commented Jan 7, 2026


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@epernod epernod added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Jan 7, 2026
Comment thread applications/plugins/Geomagic/src/Geomagic/GeomagicDriver.cpp Outdated
Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
Comment on lines +75 to +76
static auto last_time = std::chrono::high_resolution_clock::now();
static int counter = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have these static?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to init only once, this method is directly repeated inside the haptic thread

@hugtalbot hugtalbot added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Jan 15, 2026
@hugtalbot hugtalbot merged commit 4de3348 into sofa-framework:master Jan 15, 2026
10 of 13 checks passed
@hugtalbot hugtalbot added this to the v26.06 milestone Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants