block pentium

This commit is contained in:
Maikiwi 2022-03-22 17:34:38 -07:00
parent f84c25808f
commit 4c0b8e3c24

View file

@ -929,6 +929,9 @@
},
toggleAudioContext: function () {
if (app.cfg.advanced.AudioContext === true) {
if (navigator.hardwareConcurrency < 6) {
bootbox.confirm("Cider detects less than 6 logical processors, turning this on will most certainly lag. Are you sure you want to continue?", function (result) {
if (result) {
CiderAudio.init();
if (app.cfg.audio.normalization === true) {
CiderAudio.normalizerOn()
@ -937,6 +940,18 @@
CiderAudio.spatialOn()
CiderAudio.hierarchical_loading();
}
}})
}
else {
CiderAudio.init();
if (app.cfg.audio.normalization === true) {
CiderAudio.normalizerOn()
}
if (app.cfg.audio.spatial === true) {
CiderAudio.spatialOn()
CiderAudio.hierarchical_loading();
}
}
} else {
CiderAudio.off();
}