diff options
-rw-r--r-- | components/gfx/paint_thread.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index ed1d7568ea6..aa759ca6b7a 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -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(); |