def init_notes_for_display @notes_for_display = @notes.flatten.sort_by(&:appear_time) end
Taiko.Fumen.prototype.initNotesForDisplay = function() { this._notesForDisplay = Array.prototype.concat.apply([], this._notes); this._notesForDisplay.sort(function(a, b) { return a.appearTime - b.appearTime; }); };
Sprite 和 Bitmap 用完不需要 dispose —— 还有比这更开心的事情吗?
trentswd 发表于 2015-11-1 03:20
看见pixi论坛里面的人说,pixi的sprite和bitmap都要手动destroy,js的gc也不会自定销毁webgl的context
我 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |