Skip to content

Commit 376044e

Browse files
committed
fix very slow rendering
1 parent 523915f commit 376044e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/website/js/main/local_main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { MIDIFile } from "../utils/drop_file_handler.ts";
22
import { Manager } from "../manager/manager.js";
33
import { showNotification } from "../notification/notification.js";
44
import { LocaleManager } from "../locale/locale_manager.js";
5-
import { SpessaSynthLogging } from "spessasynth_core";
65
import type { LocaleCode } from "../locale/locale_files/locale_list.ts";
76
import type { SavedSettings } from "../../server/saved_settings.ts";
87
import { readSampleRateParam } from "../utils/sample_rate_param.ts";
@@ -52,7 +51,6 @@ window.savedSettings = new Promise((resolve) => {
5251

5352
window.isLocalEdition = true;
5453

55-
SpessaSynthLogging(true, true, true);
5654
const titleMessage = document.querySelector<HTMLHeadingElement>("#title")!;
5755
const progressBar = document.querySelector<HTMLDivElement>("#progress_bar")!;
5856
const fileInput = document.querySelector<HTMLInputElement>("#midi_file_input")!;

src/website/js/manager/export_audio/render_audio_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function renderAudioData(
5757
enableEffects: !separated
5858
});
5959
// No cap
60-
rendererSynth.setMasterParameter("voiceCap", 4_294_967_296);
60+
rendererSynth.setMasterParameter("voiceCap", 1024);
6161
console.info("Parsing and loading the sound bank in the main thread.");
6262
const sf = SoundBankLoader.fromArrayBuffer(this.sBankBuffer);
6363
rendererSynth.soundBankManager.addSoundBank(sf, SOUND_BANK_ID);

0 commit comments

Comments
 (0)