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
9a11a294
Commit
9a11a294
authored
12 years ago
by
Monty Brandenberg
Browse files
Options
Downloads
Patches
Plain Diff
Faster spin in worker thread when doing I/O and a priority bump needed when fixing priorities.
parent
3a9c182d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcorehttp/_httpservice.cpp
+5
-1
5 additions, 1 deletion
indra/llcorehttp/_httpservice.cpp
indra/newview/lltexturefetch.cpp
+1
-1
1 addition, 1 deletion
indra/newview/lltexturefetch.cpp
with
6 additions
and
2 deletions
indra/llcorehttp/_httpservice.cpp
+
5
−
1
View file @
9a11a294
...
@@ -38,6 +38,10 @@
...
@@ -38,6 +38,10 @@
#include
"lltimer.h"
#include
"lltimer.h"
// Tuning parameters
static
const
int
LOOP_SLEEP_NORMAL_MS
=
10
;
// Normal per-loop sleep in milliseconds
namespace
LLCore
namespace
LLCore
{
{
...
@@ -198,7 +202,7 @@ void HttpService::threadRun(LLCoreInt::HttpThread * thread)
...
@@ -198,7 +202,7 @@ void HttpService::threadRun(LLCoreInt::HttpThread * thread)
// Determine whether to spin, sleep briefly or sleep for next request
// Determine whether to spin, sleep briefly or sleep for next request
if
(
REQUEST_SLEEP
!=
loop
)
if
(
REQUEST_SLEEP
!=
loop
)
{
{
ms_sleep
(
50
);
ms_sleep
(
LOOP_SLEEP_NORMAL_MS
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/lltexturefetch.cpp
+
1
−
1
View file @
9a11a294
...
@@ -736,7 +736,7 @@ void LLTextureFetchWorker::setDesiredDiscard(S32 discard, S32 size)
...
@@ -736,7 +736,7 @@ void LLTextureFetchWorker::setDesiredDiscard(S32 discard, S32 size)
if
((
prioritize
&&
mState
==
INIT
)
||
mState
==
DONE
)
if
((
prioritize
&&
mState
==
INIT
)
||
mState
==
DONE
)
{
{
mState
=
INIT
;
mState
=
INIT
;
U32
work_priority
=
mWorkPriority
|
LLWorkerThread
::
PRIORITY_
LOW
;
U32
work_priority
=
mWorkPriority
|
LLWorkerThread
::
PRIORITY_
HIGH
;
setPriority
(
work_priority
);
setPriority
(
work_priority
);
}
}
}
}
...
...
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