View Issue Details

IDProjectCategoryView StatusLast Update
0001910Spring engineGeneralpublic2012-04-07 03:35
ReporterSirMaverick Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Product Version0.81.2.1 
Summary0001910: disabling sound skipes cpu
DescriptionWhen disabling sound, cpu usage goes up (alt+b shows him usage for sim).
Seems to correspond to number of sounds played (no sound -> no lag, many sounds > lag).

Tested in BA and CA.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

hoijui

2010-05-01 23:30

reporter   ~0004879

i get the exact same issue here.
i have told it to Auswaschbar, but if i remember right, he was not able to reproduce it. so It might be HW related.

zerver

2010-05-02 18:29

reporter   ~0004884

If it is hw related, then we have a serious bug. Disabled sound --> no sound driver or hardware should be used.

hoijui

2010-05-02 22:32

reporter   ~0004886

the problem is not with disabled sound, but when disabling sound in-game. and as he describes it, it lags nearly nothing at the start of the game, and later lags a lot (freeze or 0.5 FPS for 5+ seconds), and that is usually when there are a lot of sounds being played.

zerver

2010-05-03 22:36

reporter   ~0004889

Ok, disabling the sound in fact only mutes it. This means bad sound driver might indeed cause this. The sound system should be disabled for real imo, but not for the purpose of fixing this specific issue.

Kloot

2010-05-03 22:55

developer   ~0004890

There was a NullSound implementation before the sound-system rewrite, so it might be worth virtualizing CSound again.

hoijui

2010-05-06 11:05

reporter   ~0004892

doing that

hoijui

2010-05-12 13:41

reporter   ~0004905

implemented NullSound now.
but switching between CSound and NullSound in-game is not supported.
To support this, we would need to cache all calls to LoadSoundDefs(), and notify all classes that use sounds, plus Lua code, that the sound system was reloaded, so they can reload sound handles.
i do not see need for this currently, as it will likely not even fix this bug.

Issue History

Date Modified Username Field Change
2010-05-01 22:33 SirMaverick New Issue
2010-05-01 23:30 hoijui Note Added: 0004879
2010-05-01 23:30 hoijui Status new => confirmed
2010-05-02 18:29 zerver Note Added: 0004884
2010-05-02 22:32 hoijui Note Added: 0004886
2010-05-03 22:36 zerver Note Added: 0004889
2010-05-03 22:55 Kloot Note Added: 0004890
2010-05-06 11:05 hoijui Note Added: 0004892
2010-05-12 13:41 hoijui Note Added: 0004905
2012-04-07 03:35 jK Status confirmed => closed
2012-04-07 03:35 jK Resolution open => suspended