Skip to content

Commit

Permalink
Don't capture file/line-numbers for COM objects in debug mode
Browse files Browse the repository at this point in the history
.NET 4.7.1 has a major performance regression when capturing file and
line numbers in stack traces
(microsoft/dotnet#529) that was making debug
mode unusably slow so I'm turning that option off for now.
  • Loading branch information
virtuallynaked committed Dec 25, 2017
1 parent f6741e6 commit 705b856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Viewer/src/viewer/VRApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class VRApp : IDisposable {
private const bool debugDevice = false;

private static String GetStackTrace() {
return new StackTrace(4, true).ToString();
return new StackTrace(4, false).ToString();
}

[Conditional("DEBUG")]
Expand Down

0 comments on commit 705b856

Please sign in to comment.