Bug Tracker – Full Text Bug Listing

Bug 1103

Summary: Allocate memory for music on the system heap instead of Zone heap
Product: Odamex Reporter: Dr. Sean <grandpachuck187>
Component: ClientAssignee: Odamex Bug Reporter <odamex-bug-reporter>
Status: ASSIGNED ---    
Severity: enhancement    
Priority: P1    
Version: 0.7.x (Old)   
Hardware: All   
OS: All   
Attachments: switch memio functions to use the system heap

Description Dr. Sean 2014-07-15 16:08:51 CDT
The Zone memory heap is used to hold all formats of music data while it is being played. WAVE/FLAC/MP3 formats require a large amount of memory and necessitate a large Zone memory heap to be allocated when Odamex starts up. Most often, however, MIDI/MUS formats are being played and a large percentage of the Zone memory heap is unused. It would make sense to allocate memory for music on the system heap with new/delete instead, allowing Odamex to use a smaller heapsize than the default 128Mb.
Comment 1 Russell Rice 2014-09-14 07:42:50 CDT
Created attachment 512 [details]
switch memio functions to use the system heap

I made this patch a while ago and forgot to submit it, hope it helps
Comment 2 Mike Lightner 2014-12-11 05:22:26 CST
This patch was applied in r5154.
Comment 3 Mike Lightner 2014-12-11 05:35:57 CST
...and revoked in r5155.