ange-yaghi / engine-sim

Combustion engine simulator that generates realistic audio.
http://engine-sim.parts/
MIT License
8.68k stars 787 forks source link

I need serious help. #305

Open That0neKid101 opened 2 years ago

That0neKid101 commented 2 years ago

My audio is broken. It stutters, lags, and the latency is through the roof. Hovering at about 700. Everything else works amazingly, just the audio is buggy. The simulation itself is fine, and works great, but the audio is absolutely broken. I've read every single problem that people have put out about it, and all that I've been seeing is references to the FAQ. All it says is that I need to adjust the simulation speed, and I've tried. It still runs great after changes (higher or lower) to the speed of the simulation internally, it's just the audio. It doesn't use nearly any of my CPU, it doesn't work my resources at all. I have been inside and out of the internet looking for a solution to this problem, but I've found nothing that works. Someone help? I need some fix that it's referring to the FAQ. And I know I have a good enough build. Please help.

Jckf commented 2 years ago

The simulator runs all of its physics on a single thread, and this is where you are most likely to be bottlenecked. A multi-core CPU with for instance 8 cores will not be able to allocate more than one 8th of its power to this single thread, which in Task Manager will look like the sim is only using around 12% of your CPU. This is normal. If the audio stutters, that means your computer is unable to keep up with the simulation, and you either need to reduce the simulation frequency or choose a less complex engine.

That0neKid101 commented 2 years ago

If it helps any, here's my specs. CPU: Ryzen 3600X GPU: Radeon RX580 RAM: Patriot Viper 16GB @3600MHz No clue if this info would help at all, just trying to get ideas thrown out there.

DDev247 commented 2 years ago

Maybe this helps.