lower default update interval to 10ms
This commit is contained in:
@ -571,11 +571,12 @@ General Settings:
|
||||
size for the text editor and log font of the application can be set.
|
||||
- *GUI update interval:* Allows to set the time interval between GUI
|
||||
and data updates during a LAMMPS run in milliseconds. The default is
|
||||
to update the GUI every 100 milliseconds. This is good for most cases.
|
||||
For LAMMPS runs that run very fast, however, data may be missed and
|
||||
to update the GUI every 10 milliseconds. This is good for most cases.
|
||||
For LAMMPS runs that run *very* fast, however, data may be missed and
|
||||
through lowering this interval, this can be corrected. However, this
|
||||
will make the GUI use more resources, which may be a problem on some
|
||||
computers with slower CPUs. The default value is 100 milliseconds.
|
||||
computers with slower CPUs and a small number of CPU cores. This
|
||||
setting may be changed to a value between 1 and 1000 milliseconds.
|
||||
|
||||
Accelerators:
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
@ -1088,7 +1088,7 @@ void LammpsGui::do_run(bool use_buffer)
|
||||
|
||||
logupdater = new QTimer(this);
|
||||
connect(logupdater, &QTimer::timeout, this, &LammpsGui::logupdate);
|
||||
logupdater->start(settings.value("updfreq", "100").toInt());
|
||||
logupdater->start(settings.value("updfreq", "10").toInt());
|
||||
}
|
||||
|
||||
void LammpsGui::render_image()
|
||||
|
||||
@ -260,7 +260,7 @@ GeneralTab::GeneralTab(QSettings *_settings, LammpsWrapper *_lammps, QWidget *pa
|
||||
auto *freqval = new QSpinBox;
|
||||
freqval->setRange(1, 1000);
|
||||
freqval->setStepType(QAbstractSpinBox::AdaptiveDecimalStepType);
|
||||
freqval->setValue(settings->value("updfreq", "100").toInt());
|
||||
freqval->setValue(settings->value("updfreq", "10").toInt());
|
||||
freqval->setObjectName("updfreq");
|
||||
freqlayout->addWidget(freqlabel);
|
||||
freqlayout->addWidget(freqval);
|
||||
|
||||
Reference in New Issue
Block a user