Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem.js
2026-07-01 22:38:29 -06:00

60 lines
2.9 KiB
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem = function(global, require, module, exports) {
global = require("module$node_modules$pixi_DOT_js$lib$extensions$Extensions");
var deprecation = require("module$node_modules$pixi_DOT_js$lib$utils$logging$deprecation");
"use strict";
const node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem$classdecl$var20 = class {
get count() {
return this._renderer.tick;
}
get checkCount() {
return this._checkCount;
}
set checkCount(value) {
deprecation.deprecation("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead.");
this._checkCount = value;
}
get maxIdle() {
return this._renderer.gc.maxUnusedTime / 1e3 * 60;
}
set maxIdle(value) {
deprecation.deprecation("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead.");
this._renderer.gc.maxUnusedTime = value / 60 * 1e3;
}
get checkCountMax() {
return Math.floor(this._renderer.gc._frequency / 1e3);
}
set checkCountMax(_value) {
deprecation.deprecation("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead.");
}
get active() {
return this._renderer.gc.enabled;
}
set active(value) {
deprecation.deprecation("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead.");
this._renderer.gc.enabled = value;
}
constructor(renderer) {
this._renderer = renderer;
this._checkCount = 0;
}
init(options) {
options.textureGCActive !== node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem$classdecl$var20.defaultOptions.textureGCActive && (this.active = options.textureGCActive);
options.textureGCMaxIdle !== node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem$classdecl$var20.defaultOptions.textureGCMaxIdle && (this.maxIdle = options.textureGCMaxIdle);
options.textureGCCheckCountMax !== node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem$classdecl$var20.defaultOptions.textureGCCheckCountMax && (this.checkCountMax = options.textureGCCheckCountMax);
}
run() {
deprecation.deprecation("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead.");
this._renderer.gc.run();
}
destroy() {
this._renderer = null;
}
};
require = node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem$classdecl$var20;
require.extension = {type:[global.ExtensionType.WebGLSystem, global.ExtensionType.WebGPUSystem], name:"textureGC"};
require.defaultOptions = {textureGCActive:!0, textureGCAMaxIdle:null, textureGCMaxIdle:3600, textureGCCheckCountMax:600};
exports.TextureGCSystem = require;
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureGCSystem.js.map