mirror of
https://github.com/MapMakersAndProgrammers/Alternativa3D.git
synced 2025-10-27 18:39:07 -07:00
Performance update using object and array literals
The object and array literals are faster than the 'new' keyword.
This commit is contained in:
@@ -737,7 +737,7 @@ package alternativa.engine3d.loaders {
|
||||
var byteArray:ByteArray = buffer.byteBuffer;
|
||||
byteArray.endian = Endian.LITTLE_ENDIAN;
|
||||
var offset:int = 0;
|
||||
var attributes:Array = new Array();
|
||||
var attributes:Array = [];
|
||||
var jointsOffset:int = 0;
|
||||
for (var k:int = 0; k < buffer.attributes.length; k++) {
|
||||
var attr:int;
|
||||
|
||||
Reference in New Issue
Block a user