Browse Source

Revert recent memory fix for Windows

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
170b0798fd
  1. 6
      src/qtlibtorrent/qbtsession.cpp

6
src/qtlibtorrent/qbtsession.cpp

@ -403,8 +403,10 @@ void QBtSession::configureSession() { @@ -403,8 +403,10 @@ void QBtSession::configureSession() {
#ifdef Q_WS_WIN
#if LIBTORRENT_VERSION_MINOR > 14
// Fixes huge memory usage on Windows 7 (especially when checking files)
sessionSettings.disk_io_write_mode = session_settings::disable_os_cache;
sessionSettings.disk_io_read_mode = session_settings::disable_os_cache;
//sessionSettings.disk_io_write_mode = session_settings::disable_os_cache;
//sessionSettings.disk_io_read_mode = session_settings::disable_os_cache;
sessionSettings.disk_io_write_mode = session_settings::disable_os_cache_for_aligned_files;
sessionSettings.disk_io_read_mode = session_settings::disable_os_cache_for_aligned_files;
#endif
#endif
// Queueing System

Loading…
Cancel
Save