View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001910 | Spring engine | General | public | 2010-05-01 22:33 | 2012-04-07 03:35 |
| Reporter | SirMaverick | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | suspended | ||
| Product Version | 0.81.2.1 | ||||
| Summary | 0001910: disabling sound skipes cpu | ||||
| Description | When 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. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
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. |
|
|
If it is hw related, then we have a serious bug. Disabled sound --> no sound driver or hardware should be used. |
|
|
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. |
|
|
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. |
|
|
There was a NullSound implementation before the sound-system rewrite, so it might be worth virtualizing CSound again. |
|
|
doing that |
|
|
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. |
| 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 |