Tech/LxEngine/Memory Management
From Athile
This page is a work-in-progress. It is not yet complete.
It may contain inaccurate, incorrect information. Use at your own risk.
It may contain inaccurate, incorrect information. Use at your own risk.
Overview
Lx classes generally break-down into one of two categories:
- Primitives - lightweight objects generally allocated on the stack or as member variables
- Objects - reference-counted heap objects
Note:
- All non-performance critical objects are reference-counted
Reference Counting
The premise of the LxEngine design is that the simplicity and consistency of reference counting generally outweighs the minor performance increase of custom memory management.