Anonymous | Login | Signup for a new account | 2025-06-19 21:40 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | All Projects Issue Support Ranking | Rules | My Account |
View Revisions: Issue #1954 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0001954: Changing sound sending from String to logical index to save bandwidth | ||
Revision | 2015-01-03 19:14 by Torr Samaho | ||
Description | Right now all the sound functions communicate via String. Therefore (excluding compression) we'd be sending stuff similar to 'myactor/attacksound123' over the wire rather than it's index (like 155). I noticed while playing ZDoomWars, when I edited out the sounds, the bandwidth had a significant decrease if they were played a lot. After all, 23 bytes vs 2 is a big chunk when sent a lot. I figure sending the logical index as a unsigned short and letting the client look it up should be good enough. Another option for unknown sounds could be to send 65535 and then followed by the custom string if it's unknown, or to not send the sound if it's not indexed as a logical sound. |
||
Revision | 2014-12-26 09:56 by cobalt | ||
Description | Right now all the sound functions communicate via String. Therefore (excluding compression) we'd be sending stuff similar to 'myactor/attacksound123' over the wire rather than it's index (like 155). I noticed while playing ZDoomWars, when I edited out the sounds, the bandwidth had a significant decrease if they were played a lot. After all, 23 bytes vs 2 is a big chunk when sent a lot. I figure sending the logical index as a unsigned short and letting the client look it up should be good enough. Another option for unknown sounds could be to send 65535 and then followed by the custom string if it's unknown, or to not send the sound if it's not indexed as a logical sound. |
||
Revision | 2014-10-10 15:28 by Watermelon | ||
Description | Right now all the sound functions communicate via String. Therefore (excluding compression) we'd be sending stuff similar to 'myactor/attacksound123' over the wire rather than it's index (like 155). I noticed while playing ZDoomWars, when I edited out the sounds, the bandwidth had a significant decrease if they were played a lot. After all, 23 bytes vs 2 is a big chunk when sent a lot. I figure sending the logical index as a unsigned short and letting the client look it up should be good enough. Another option for unknown sounds could be to send 65535 and then followed by the custom string if it's unknown, or to not send the sound if it's not indexed as a logical sound. |
Copyright © 2000 - 2025 MantisBT Team |