55c64a3392
Added missing *_with_alignment allocation variants.
2017-04-23 10:10:10 -07:00
7f761a9489
Added custom aligned allocations to MemArena.
...
Used in BVH4.
2017-04-13 23:06:56 -07:00
db3e4ad129
MemArena now slowly increases the size of each subsequent block.
...
This seems to work more nicely than a fixed block size, because
it adapts to how much memory is being requested over-all. For
example, a small scene won't allocate large amounts of RAM,
but a large scene with large data won't be penalized with a
lot of tiny allocations.
2017-04-10 20:49:55 -07:00
70f715ec2d
MemArena now collects statistics about its usage.
...
You can print out statistics about the main arena used in
Psychopath by passing the new --stats flag.
2017-04-10 18:34:08 -07:00
f46e72b0ca
Forgot to remove extraneous println's from MemArena.
...
Also updated MemArena documentation.
2017-04-10 00:50:51 -07:00
0672db3a46
Fixed some typos and formatting in mem_arena.
2017-04-10 00:32:34 -07:00
66eb01947f
Improve MemArena to only do a large alloc if it doesn't fit in the current block.
2017-04-10 00:25:10 -07:00
e9e202933f
Assembly type now partially uses MemArena.
2017-04-09 18:27:01 -07:00
a8bea5c09d
Made MemArena so it will actually work for multiple allocations.
...
Silly mistake.
2017-04-09 17:29:42 -07:00
662f02a78d
Derive Debug for MemArena.
2017-04-09 16:30:16 -07:00
276e3d361b
Renamed Arena to MemArena. Less ambiguous.
2017-04-09 16:22:34 -07:00
6f043b575a
Implemented a basic memory arena in a sub-crate.
2017-04-09 15:53:06 -07:00