You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once a texture is loaded, it's never unloaded, leading to large VRAM usage, and possible GPU process crashes. This is easier to see on bigger Yukon servers like Journey by visiting every room, opening every prompt, and visiting as many member igloos as possible to load those textures.
The text was updated successfully, but these errors were encountered:
for (let item of this.world.loadedAssets) {
if (Object.keys(this.world.room.textures.list).includes(item.id)) {
textures++
this.world.room.textures.remove(item.id)
}
if (Object.keys(this.world.cache.json.entries.entries).includes(item.id)) {
this.world.room.cache.json.remove(item.id)
json++
}
if (Object.keys(this.world.cache.audio.entries.entries).includes(item.id)) {
this.world.room.cache.audio.remove(item.id)
audio++
}
if (Object.keys(this.world.cache.video.entries.entries).includes(item.id)) {
this.world.room.cache.video.remove(item.id)
}
for (let anim in this.world.room.anims.anims.entries) {
if (this.world.room.anims.anims.entries[anim].frames[0].textureKey == item.id || this.world.room.anims.anims.entries[anim].key.startsWith(item.id)) {
anims++
delete this.world.room.anims.anims.entries[anim]
}
}
}
This is run at the start of room loading, meaning the first thing we do is unload every asset loaded whilst we were in the previous room. This includes the room's assets, as well as assets of any widgets we may have loaded when in that room, and clothing sprites from any penguins that were in that room.
Memory usage could be reduced further by unloading any asset once it is no longer in use, rather than just checking when the room is unloaded. This would only make a difference when you have a lot of penguins in a room changing clothing items regularly, meaning many many items are loaded.
Once a texture is loaded, it's never unloaded, leading to large VRAM usage, and possible GPU process crashes. This is easier to see on bigger Yukon servers like Journey by visiting every room, opening every prompt, and visiting as many member igloos as possible to load those textures.
The text was updated successfully, but these errors were encountered: