projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6345216
)
Double up on DCP-decode prepare threads and readahead as I think it provides a slight...
v2.13.66
author
Carl Hetherington
<cth@carlh.net>
Tue, 6 Nov 2018 02:15:38 +0000
(
02:15
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 6 Nov 2018 02:15:38 +0000
(
02:15
+0000)
src/lib/butler.cc
patch
|
blob
|
history
diff --git
a/src/lib/butler.cc
b/src/lib/butler.cc
index d50c461c8a1275ab1102665623a45270faa3d434..018334c7e3db12022bb6742176620d93b232c3d6 100644
(file)
--- a/
src/lib/butler.cc
+++ b/
src/lib/butler.cc
@@
-43,7
+43,7
@@
using boost::optional;
/** Minimum video readahead in frames */
#define MINIMUM_VIDEO_READAHEAD 10
/** Maximum video readahead in frames; should never be reached unless there are bugs in Player */
/** Minimum video readahead in frames */
#define MINIMUM_VIDEO_READAHEAD 10
/** Maximum video readahead in frames; should never be reached unless there are bugs in Player */
-#define MAXIMUM_VIDEO_READAHEAD
24
+#define MAXIMUM_VIDEO_READAHEAD
48
/** Minimum audio readahead in frames */
#define MINIMUM_AUDIO_READAHEAD (48000 * MINIMUM_VIDEO_READAHEAD / 24)
/** Minimum audio readahead in frames; should never be reached unless there are bugs in Player */
/** Minimum audio readahead in frames */
#define MINIMUM_AUDIO_READAHEAD (48000 * MINIMUM_VIDEO_READAHEAD / 24)
/** Minimum audio readahead in frames; should never be reached unless there are bugs in Player */
@@
-79,10
+79,10
@@
Butler::Butler (shared_ptr<Player> player, shared_ptr<Log> log, AudioMapping aud
*/
if (_log) {
*/
if (_log) {
- LOG_TIMING("start-prepare-threads %1", boost::thread::hardware_concurrency());
+ LOG_TIMING("start-prepare-threads %1", boost::thread::hardware_concurrency()
* 2
);
}
}
- for (size_t i = 0; i < boost::thread::hardware_concurrency(); ++i) {
+ for (size_t i = 0; i < boost::thread::hardware_concurrency()
* 2
; ++i) {
_prepare_pool.create_thread (bind (&boost::asio::io_service::run, &_prepare_service));
}
}
_prepare_pool.create_thread (bind (&boost::asio::io_service::run, &_prepare_service));
}
}