mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 04:31:03 +00:00
Use 100ms delay between checking for results on all bflsc devices as the buffering of results mean checking more frequently just wastes CPU and causes more lock contention for only marginally better latencies.
This commit is contained in:
parent
ffa12a138a
commit
3c707202cf
@ -816,7 +816,7 @@ reinit:
|
||||
}
|
||||
|
||||
sc_info->scan_sleep_time = BAS_SCAN_TIME;
|
||||
sc_info->results_sleep_time = BAS_RES_TIME;
|
||||
sc_info->results_sleep_time = BFLSC_RES_TIME;
|
||||
sc_info->default_ms_work = BAS_WORK_TIME;
|
||||
latency = BAS_LATENCY;
|
||||
|
||||
@ -827,7 +827,6 @@ reinit:
|
||||
if (sc_info->sc_count > 1) {
|
||||
newname = BFLSC_MINIRIG;
|
||||
sc_info->scan_sleep_time = BAM_SCAN_TIME;
|
||||
sc_info->results_sleep_time = BAM_RES_TIME;
|
||||
sc_info->default_ms_work = BAM_WORK_TIME;
|
||||
bflsc->usbdev->ident = IDENT_BAM;
|
||||
latency = BAM_LATENCY;
|
||||
@ -835,14 +834,12 @@ reinit:
|
||||
if (sc_info->sc_devs[0].engines < 34) { // 16 * 2 + 2
|
||||
newname = BFLSC_JALAPENO;
|
||||
sc_info->scan_sleep_time = BAJ_SCAN_TIME;
|
||||
sc_info->results_sleep_time = BAJ_RES_TIME;
|
||||
sc_info->default_ms_work = BAJ_WORK_TIME;
|
||||
bflsc->usbdev->ident = IDENT_BAJ;
|
||||
latency = BAJ_LATENCY;
|
||||
} else if (sc_info->sc_devs[0].engines < 130) { // 16 * 8 + 2
|
||||
newname = BFLSC_LITTLESINGLE;
|
||||
sc_info->scan_sleep_time = BAL_SCAN_TIME;
|
||||
sc_info->results_sleep_time = BAL_RES_TIME;
|
||||
sc_info->default_ms_work = BAL_WORK_TIME;
|
||||
bflsc->usbdev->ident = IDENT_BAL;
|
||||
latency = BAL_LATENCY;
|
||||
|
@ -314,13 +314,10 @@ struct SaveString {
|
||||
// SCAN_TIME - delay after sending work
|
||||
// RES_TIME - delay between checking for results
|
||||
#define BAM_SCAN_TIME 20
|
||||
#define BAM_RES_TIME 2
|
||||
#define BAS_SCAN_TIME 360
|
||||
#define BAS_RES_TIME 36
|
||||
#define BAL_SCAN_TIME 720
|
||||
#define BAL_RES_TIME 72
|
||||
#define BAJ_SCAN_TIME 1000
|
||||
#define BAJ_RES_TIME 100
|
||||
#define BFLSC_RES_TIME 100
|
||||
#define BFLSC_MAX_SLEEP 2000
|
||||
|
||||
#define BAJ_LATENCY LATENCY_STD
|
||||
|
Loading…
x
Reference in New Issue
Block a user