mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-28 08:39:34 +00:00
Better allocator for TorqueScript temp conversions used during interpretation
instead of using a Vector<> that never frees and grows for torquescript temporaries created when doing type conversions)
This commit is contained in:
parent
516163fd5d
commit
3988e7baee
3 changed files with 8 additions and 29 deletions
|
|
@ -146,17 +146,7 @@ class ConsoleValue
|
|||
|
||||
S32 type;
|
||||
|
||||
enum Constants
|
||||
{
|
||||
ConversionBufferStride = 32
|
||||
};
|
||||
|
||||
struct ConversionBuffer
|
||||
{
|
||||
char buffer[ConversionBufferStride];
|
||||
};
|
||||
|
||||
static Vector<ConversionBuffer> sConversionBuffer;
|
||||
static DataChunker sConversionAllocator;
|
||||
|
||||
char* convertToBuffer() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue