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
86314969
Commit
86314969
authored
7 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
Backed out MAINT-989, changeset: 0a9a1e276e57
parent
3b2ffcff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llphysicsmotion.cpp
+5
-7
5 additions, 7 deletions
indra/newview/llphysicsmotion.cpp
with
5 additions
and
7 deletions
indra/newview/llphysicsmotion.cpp
+
5
−
7
View file @
86314969
...
...
@@ -44,7 +44,7 @@ typedef std::map<std::string, std::string> controller_map_t;
typedef
std
::
map
<
std
::
string
,
F32
>
default_controller_map_t
;
#define MIN_REQUIRED_PIXEL_AREA_AVATAR_PHYSICS_MOTION 0.f
#define TIME_ITERATION_STEP 0.
033f // roughtly 30 fps
#define TIME_ITERATION_STEP 0.
1f
inline
F64
llsgn
(
const
F64
a
)
{
...
...
@@ -493,8 +493,8 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
const
F32
time_delta
=
time
-
mLastTime
;
// Don't update too frequently
(below 0.01)
, to avoid precision errors from small time slices.
if
(
time_delta
<=
TIME_ITERATION_STEP
)
// Don't update too frequently, to avoid precision errors from small time slices.
if
(
time_delta
<=
.01
)
{
return
FALSE
;
}
...
...
@@ -561,10 +561,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
F32
time_iteration_step
=
TIME_ITERATION_STEP
;
if
(
time_iteration
+
TIME_ITERATION_STEP
>
time_delta
)
{
time_iteration_step
=
time_delta
-
time_iteration
;
// Leave the rest for next update.
mLastTime
=
time
-
time_iteration_step
;
break
;
time_iteration_step
=
time_delta
-
time_iteration
;
}
// mPositon_local should be in normalized 0,1 range already. Just making sure...
...
...
@@ -719,6 +716,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
mAccelerationJoint_local
=
acceleration_joint_local
;
mPosition_local
=
position_new_local
;
}
mLastTime
=
time
;
mPosition_world
=
joint
->
getWorldPosition
();
mVelocityJoint_local
=
velocity_joint_local
;
...
...
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