import { Laya } from "Laya" ; import { Sprite3D } from "laya/d3/core/Sprite3D" ; import { Stage } from "laya/display/Stage" ; import { Event } from "laya/events/Event" ; import { Stat } from "laya/utils/Stat" ; import { Laya3D } from "Laya3D" ; author ...
  export class MemoryTest { count : number = 200000 ; static array : any [ ] = new Array ( ) ; constructor ( ) { Laya3D . init ( 0 , 0 ) ; Laya . stage . scaleMode = Stage . SCALE_FULL ; Laya . stage . screenMode = Stage . SCREEN_NONE ; Stat . show ( ) ; Laya . stage . on ( Event . MOUSE_DOWN , null , function ( ) : void { for ( var i = 0 ; i < this . count ; i ++ ) MemoryTest . array . push ( new Sprite3D ( ) ) ; } ) ; } }