After reading this thread http://www.lfsforum.net/showthread.php?t=3567 I did some tests comparing fps with sound switched on and off on my computer. I used replays of one lap from in-car view and logged framerate with Fraps. I turned out that when there was only one car on the track switching the sound on caused decrease of minimum fps of about 1,5 % only. But with 12 cars the decrease of minimum fps with sound switched on was almost 20 %. The results are similar when comparing average fps. It looks like this sound overhead grows almost linearly with number of cars.
The reason for such large framerate drop with sound on and many cars is probably my sound hardware being unefficient (SoundStorm) or maybe outdated drivers, rather than LFS using so much processing power to generate sound effects. Anyway, whatever the reason, there always may be people with unefficient sound hardware and implementing this simple idea may help them enjoy LFS even more.
I'd like to propose adding the ability to set maximum number of cars (closest to player's view) for which sound effects are generated.
For example, with 12 cars one has 35 fps min. without sound and 28 fps min. with sound. One could set maximum number of car sounds to 3 (hearing only player's own car and 2 closest other cars) and have over 33 fps min, provided that it is indeed a linear relation.
The reason for such large framerate drop with sound on and many cars is probably my sound hardware being unefficient (SoundStorm) or maybe outdated drivers, rather than LFS using so much processing power to generate sound effects. Anyway, whatever the reason, there always may be people with unefficient sound hardware and implementing this simple idea may help them enjoy LFS even more.
I'd like to propose adding the ability to set maximum number of cars (closest to player's view) for which sound effects are generated.
For example, with 12 cars one has 35 fps min. without sound and 28 fps min. with sound. One could set maximum number of car sounds to 3 (hearing only player's own car and 2 closest other cars) and have over 33 fps min, provided that it is indeed a linear relation.