mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
gfx: Don't create paint threads when WebRender is in use.
They're unused and just waste memory and process table entries.
This commit is contained in:
parent
7b2080c5b7
commit
f071acda47
1 changed files with 6 additions and 0 deletions
|
@ -567,6 +567,12 @@ impl WorkerThreadProxy {
|
|||
font_cache_thread: FontCacheThread,
|
||||
time_profiler_chan: time::ProfilerChan)
|
||||
-> Vec<WorkerThreadProxy> {
|
||||
// Don't make any paint threads if we're using WebRender. They're just a waste of
|
||||
// resources.
|
||||
if opts::get().use_webrender {
|
||||
return vec![]
|
||||
}
|
||||
|
||||
let thread_count = opts::get().paint_threads;
|
||||
(0..thread_count).map(|_| {
|
||||
let (from_worker_sender, from_worker_receiver) = channel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue