diff --git a/domain-server/resources/describe-settings.json b/domain-server/resources/describe-settings.json
index 801244b79e..7c8783bb82 100644
--- a/domain-server/resources/describe-settings.json
+++ b/domain-server/resources/describe-settings.json
@@ -1168,7 +1168,7 @@
"label": "Automatically determine thread count",
"type": "checkbox",
"help": "Allow system to determine number of threads (recommended)",
- "default": true,
+ "default": false,
"advanced": true
},
{
@@ -1458,7 +1458,7 @@
"label": "Automatically determine thread count",
"type": "checkbox",
"help": "Allow system to determine number of threads (recommended)",
- "default": true,
+ "default": false,
"advanced": true
},
{
diff --git a/domain-server/resources/web/wizard/index.shtml b/domain-server/resources/web/wizard/index.shtml
index 37f9d9e813..c70a3405bb 100644
--- a/domain-server/resources/web/wizard/index.shtml
+++ b/domain-server/resources/web/wizard/index.shtml
@@ -56,7 +56,7 @@
-
Localhost has been granted administrator privileges to this domain. (Localhost is anyuser on the same machine as the High Fidelity Server)
+
Localhost has been granted administrator privileges to this domain. (Localhost is anyuser on the same machine as the Vircadia server)
@@ -186,7 +186,37 @@
-
+
+
+
+
+
+
+
+
+
+
+ Would you like use automatic threading for your server's avatars and audio?
+ If you are hosting this server on your local computer and it is not very powerful, then consider leaving this off because the server will use more resources if it is being utilized extensively, thereby slowing down your computer.
+ If you are running this server on a powerful system and intend to have a large audience, then turn this setting on.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -201,7 +231,7 @@
-
You have successfully setup and configured your cloud hosted domain.
+
You have successfully setup and configured your Vircadia domain.
diff --git a/domain-server/resources/web/wizard/js/wizard.js b/domain-server/resources/web/wizard/js/wizard.js
index efd3b28116..aafe2ea1ef 100644
--- a/domain-server/resources/web/wizard/js/wizard.js
+++ b/domain-server/resources/web/wizard/js/wizard.js
@@ -51,6 +51,10 @@ $(document).ready(function(){
$('body').on('click', '#save-permissions', function() {
savePermissions();
});
+
+ $('body').on('click', '#save-threading-settings', function() {
+ saveThreadingSettings();
+ });
function triggerSaveUsernamePassword(event) {
if (event.keyCode === 13) {
@@ -103,7 +107,7 @@ $(document).ready(function(){
$(this).prop('disabled', true);
});
});
-
+
reloadSettings(function(success) {
if (success) {
getDomainFromAPI();
@@ -145,7 +149,7 @@ function setupWizardSteps() {
$('#admin-description').html('Add more High Fidelity usernames');
} else {
$('.cloud-only').remove();
- $('#save-permissions').text("Finish");
+ $('#save-threading-settings').text("Finish");
steps = $('.wizard-step');
$(steps).each(function(i) {
@@ -254,10 +258,6 @@ function goToNextStep() {
var currentStep = $('body').find('.wizard-step:visible');
var nextStep = currentStep.next('.wizard-step');
- var formJSON = {
- "wizard": {}
- }
-
if (nextStep.length > 0) {
currentStep.hide();
nextStep.show();
@@ -515,7 +515,29 @@ function saveUsernamePassword() {
$(this).blur();
// POST the form JSON to the domain-server settings.json endpoint so the settings are saved
- postSettings(formJSON, function() {
- location.reload();
- });
+ postSettings(formJSON, goToNextStep);
+}
+
+function saveThreadingSettings() {
+ var enable_automatic_threading = $("#enable-automatic-threading").prop("checked");
+
+ currentStepNumber += 1;
+
+ var formJSON = {
+ "audio_threading": {
+ "auto_threads": enable_automatic_threading
+ },
+ "avatar_mixer": {
+ "auto_threads": enable_automatic_threading
+ },
+ "wizard": {
+ "steps_completed": currentStepNumber.toString()
+ }
+ }
+
+ // remove focus from the button
+ $(this).blur();
+
+ // POST the form JSON to the domain-server settings.json endpoint so the settings are saved
+ postSettings(formJSON, goToNextStep);
}