lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


One step to take if the real concern is Vector3 is implement a suballocator that optimizes this case. Lua 5.2 may also help since it can recognize that Vector3 has no __gc metamethod.

If you need arrays of Vector3's, then you probably want to create a type for those as well though that means that all accesses potentially construct another userdata object.

Mark