Bug Tracker – Bug 1103

Allocate memory for music on the system heap instead of Zone heap

Last modified: 2014-12-11 05:35:57 CST
Bug 1103 - (ARRAY(0x5f49128)) Allocate memory for music on the system heap instead of Zone heap
(ARRAY(0x5f49128))
Allocate memory for music on the system heap instead of Zone heap
Status: ASSIGNED
Product: Odamex
Classification: Unclassified
Component: Client
0.7.x
All All
: P1 enhancement
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-07-15 16:08:51 CDT by Dr. Sean
Modified: 2014-12-11 05:35 CST (History)
0 users

See Also:


Attachments
switch memio functions to use the system heap (1.20 KB, patch)
2014-09-14 07:42:50 CDT, Russell Rice
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ﷒0﷓
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.