Bug Tracker – Bug 1103

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

Last modified: 2014-12-11 05:35:57 UTC
Bug 1103 - Allocate memory for music on the system heap instead of Zone heap
Summary: Allocate memory for music on the system heap instead of Zone heap
Status: ASSIGNED
Alias: None
Product: Odamex
Classification: Unclassified
Component: Client (show other bugs)
Version: 0.7.x (Old)
Hardware: All All
: P1 enhancement
Assignee: Odamex Bug Reporter
URL:
Depends on:
Blocks:
 
Reported: 2014-07-15 16:08 UTC by Dr. Sean
Modified: 2014-12-11 05:35 UTC (History)
0 users

See Also:

Attachments

switch memio functions to use the system heap (1.20 KB, patch)
2014-09-14 07:42 UTC, Russell Rice
Details | Diff
Add an attachment (proposed patch, testcase, etc.)

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 UTC
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 UTC
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 UTC
This patch was applied in r5154.
Comment 3 Mike Lightner 2014-12-11 05:35:57 UTC
...and revoked in r5155.