Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
e2212f86
Commit
e2212f86
authored
11 years ago
by
Richard Linden
Browse files
Options
Downloads
Patches
Plain Diff
SH-4377 FIX: Interesting: Windows viewer crashes when SceneLoadingMonitorEnabled is enabled
parent
b1297dce
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llcommon/lltraceaccumulators.cpp
+1
-2
1 addition, 2 deletions
indra/llcommon/lltraceaccumulators.cpp
indra/llcommon/lltraceaccumulators.h
+1
-4
1 addition, 4 deletions
indra/llcommon/lltraceaccumulators.h
indra/newview/llscenemonitor.cpp
+1
-0
1 addition, 0 deletions
indra/newview/llscenemonitor.cpp
with
3 additions
and
6 deletions
indra/llcommon/lltraceaccumulators.cpp
+
1
−
2
View file @
e2212f86
...
@@ -145,7 +145,7 @@ void SampleAccumulator::addSamples( const SampleAccumulator& other, EBufferAppen
...
@@ -145,7 +145,7 @@ void SampleAccumulator::addSamples( const SampleAccumulator& other, EBufferAppen
F64
epsilon
=
0.0000001
;
F64
epsilon
=
0.0000001
;
if
(
other
.
mTotalSamplingTime
>
epsilon
)
if
(
other
.
mTotalSamplingTime
>
epsilon
&&
mTotalSamplingTime
>
epsilon
)
{
{
// combine variance (and hence standard deviation) of 2 different sized sample groups using
// combine variance (and hence standard deviation) of 2 different sized sample groups using
// the following formula: http://www.mrc-bsu.cam.ac.uk/cochrane/handbook/chapter_7/7_7_3_8_combining_groups.htm
// the following formula: http://www.mrc-bsu.cam.ac.uk/cochrane/handbook/chapter_7/7_7_3_8_combining_groups.htm
...
@@ -173,7 +173,6 @@ void SampleAccumulator::addSamples( const SampleAccumulator& other, EBufferAppen
...
@@ -173,7 +173,6 @@ void SampleAccumulator::addSamples( const SampleAccumulator& other, EBufferAppen
mNumSamples
+=
other
.
mNumSamples
;
mNumSamples
+=
other
.
mNumSamples
;
mTotalSamplingTime
+=
other
.
mTotalSamplingTime
;
mTotalSamplingTime
+=
other
.
mTotalSamplingTime
;
mMean
=
(
mMean
*
weight
)
+
(
other
.
mMean
*
(
1.0
-
weight
));
mMean
=
(
mMean
*
weight
)
+
(
other
.
mMean
*
(
1.0
-
weight
));
llassert
(
mMean
<
0
||
mMean
>=
0
);
}
}
if
(
append_type
==
SEQUENTIAL
)
if
(
append_type
==
SEQUENTIAL
)
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/llcommon/lltraceaccumulators.h
+
1
−
4
View file @
e2212f86
...
@@ -318,7 +318,6 @@ namespace LLTrace
...
@@ -318,7 +318,6 @@ namespace LLTrace
mMin
=
value
;
mMin
=
value
;
mMax
=
value
;
mMax
=
value
;
mMean
=
value
;
mMean
=
value
;
llassert
(
mMean
<
0
||
mMean
>=
0
);
mLastSampleTimeStamp
=
time_stamp
;
mLastSampleTimeStamp
=
time_stamp
;
}
}
else
else
...
@@ -336,15 +335,13 @@ namespace LLTrace
...
@@ -336,15 +335,13 @@ namespace LLTrace
void
sync
(
F64SecondsImplicit
time_stamp
)
void
sync
(
F64SecondsImplicit
time_stamp
)
{
{
if
(
mHasValue
)
if
(
mHasValue
&&
time_stamp
!=
mLastSampleTimeStamp
)
{
{
F64SecondsImplicit
delta_time
=
time_stamp
-
mLastSampleTimeStamp
;
F64SecondsImplicit
delta_time
=
time_stamp
-
mLastSampleTimeStamp
;
mSum
+=
mLastValue
*
delta_time
;
mSum
+=
mLastValue
*
delta_time
;
mTotalSamplingTime
+=
delta_time
;
mTotalSamplingTime
+=
delta_time
;
F64
old_mean
=
mMean
;
F64
old_mean
=
mMean
;
llassert
(
mMean
<
0
||
mMean
>=
0
);
mMean
+=
(
delta_time
/
mTotalSamplingTime
)
*
(
mLastValue
-
old_mean
);
mMean
+=
(
delta_time
/
mTotalSamplingTime
)
*
(
mLastValue
-
old_mean
);
llassert
(
mMean
<
0
||
mMean
>=
0
);
mSumOfSquares
+=
delta_time
*
(
mLastValue
-
old_mean
)
*
(
mLastValue
-
mMean
);
mSumOfSquares
+=
delta_time
*
(
mLastValue
-
old_mean
)
*
(
mLastValue
-
mMean
);
}
}
mLastSampleTimeStamp
=
time_stamp
;
mLastSampleTimeStamp
=
time_stamp
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llscenemonitor.cpp
+
1
−
0
View file @
e2212f86
...
@@ -283,6 +283,7 @@ void LLSceneMonitor::capture()
...
@@ -283,6 +283,7 @@ void LLSceneMonitor::capture()
else
else
{
{
mEnabled
=
enabled
;
mEnabled
=
enabled
;
reset
();
freezeScene
();
freezeScene
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment