Dotneteer/kliveide

Bug v0.4.0 - Sound lag

Ultrahead opened this issue · 12 comments

There is a lag in sounds, at least for Mac, of about 1 or 2 seconds.

Issue fixed. To be released in 0.5.0.

Released in 0.5.0

It's still happening in v0.5.0. Weird.

The sound lag seem to appear again in 0.5.0

Fixed, will be released in v0.7.0

I'm getting several seconds sound lag in Klive v0.9.0 in Windows

@TurtleQuality, could you give me some more details on your Windows machine? Windows version, CPU, memory,etc?

@TurtleQuality

Thomas, thanks for the info!

Unfortunately, the sound lagging is caused by the Electron shell, so I can't do too much to improve it. Nonetheless, v0.9.0 uses Electron shell v11.1.1, while the current development branch relies on 13.1.6, which is much faster. A few of my friends tried it (on Mac, where the sound issue was always the worst), and they experienced that the issue vanished with the new Electron version.

Since March, I'm working on a brand-new version of Klive that has its own IDE, and does not need VS Code. Though it is still not stable enough for release, you can try it to check the sound issue:

Clone the repository (git clone), use the master branch
npm run bootstrap
Select the packages/klive-emu folder (this contains the brand-new, single-app Klive version)
npm run build (it takes about 1-2 minutes)
npm start
Select ZX Spectrum 48/128
Start the machine, run LOAD "", and check the sound.
Here are a few screenshots from the new IDE (click IDE|Show IDE window in the main menu):

electron_koyCcJCiN3

electron_ib1arX8WYM

By my experience, the sound lagging issue goes away with Electron v16. I cannot reproduce it wiht Klive v0.11.0.