Combating Bloat A Crowdsourced Refresh Script

Eorzea Time
 
 
 
Language: JP EN FR DE
Version 3.1
New Items
users online
Forum » Windower » Support » Combating bloat a crowdsourced refresh script
Combating bloat a crowdsourced refresh script
 Fenrir.Jinxs
Offline
Server: Fenrir
Game: FFXI
user: Jinxs
Posts: 808
By Fenrir.Jinxs 2025-07-21 09:50:39
Link | Quote | Reply
 
I've been noticing the longer my play time the more sluggish the client gets I am sure I am not alone

To combat this the only exploration method built in currently is lua m
Which displays lua addon memory and is hard to read because it's cut off.

Thanks to Randomnick112233
We can use this simple code as a script
Code
console_log 1
lua m
wait 2
console_log 0


To take it a step further we will need a bat file
Named whatever like renameconsolelog

This part is optional
Code
@echo off

setlocal

 

:: Get current date and time in a safe format

for /f "tokens=1-4 delims=/ " %%a in ("%date%") do (

    set mm=%%a

    set dd=%%b

    set yyyy=%%c

)

for /f "tokens=1-2 delims=: " %%a in ("%time%") do (

    set hh=%%a

    set min=%%b

)

 

:: Remove leading spaces and format time

set hh=%hh: =0%

set min=%min: =0%

 

:: Construct the new filename

set newname=consolelog_%yyyy%-%mm%-%dd%_%hh%-%min%.txt

 

:: Rename the file

rename "C:\windower4\consolelog.txt" "%newname%"

 

:: Move the renamed file to the same folder (optional)

move "%newname%" "C:\windower4\%newname%"

 

endlocal


You would then add "run <pathtobatfile>" to your original script
As I am writing this at work I did not have a chance to check if the paths are 100%
You will also need the run plugin

While this won't provide us with 100% insight especially since it only shows memory usage and not CPU or read and writes
I hope that with this thread people can post some of the biggest offenders that need a complete unload after a few hours of gameplay

Which can them be turned into a simple reusable script when the client gets sluggish
[+]
Offline
Posts: 998
By Kaffy 2025-07-21 10:29:58
Link | Quote | Reply
 
I was able to consistently leave 6 instances up for the entire month between updates with no performance degradation, so I know its possible. Curious to know what all you have loaded? My box is pretty midrange, I do use dgvoodoo2 with 4gb mem per character (large address patched) if that matters.
 Fenrir.Jinxs
Offline
Server: Fenrir
Game: FFXI
user: Jinxs
Posts: 808
By Fenrir.Jinxs 2025-07-21 10:45:27
Link | Quote | Reply
 
Looking like but not limited to
Gearswap
Treasurey
The other treasure addon
Logger
Itemized
Craft
Findall
Skillchains

Anything the reads and writes really should be reloaded according to the windower discord

Hoping to just get a blanket list from the community
I would like to prolong a restart
Especially something to just run before an important instance content for insurance purposes
VIP
Offline
Posts: 952
By Lili 2025-07-21 11:55:58
Link | Quote | Reply
 
Fenrir.Jinxs said: »
Anything the reads and writes really should be reloaded

Anything that reads and writes files to disk regularly and/or often can bog down the instance when an instance is left running for very long, with medium to high activity

Idling in mog house won't cause this issue because logger has nothing to write down and findall is not registering any new item in inventory, exping overnight will make logger write a ton of lines and findall register each item that enters inventory and is later dropped

Domain Invasion causes similar issues

Etc
 Fenrir.Jinxs
Offline
Server: Fenrir
Game: FFXI
user: Jinxs
Posts: 808
By Fenrir.Jinxs 2025-07-21 12:31:36
Link | Quote | Reply
 
It would great if I could just scrape through the add-ons folder for a potential include or something to just get potential candidates

Unless there is something out there that will unload all addons and reload them
Might be a few that should be excluded
Offline
By Avaera 2025-07-21 13:43:27
Link | Quote | Reply
 
My loadout is 200mb, it feels excesive, with around 40 addons total.

Gearswap is the most intensive for me.

My issue is I'm getting microstutters way to often.
 Bahamut.Daleterrence
Offline
Server: Bahamut
Game: FFXI
user: Dalight
Posts: 28
By Bahamut.Daleterrence 2025-07-21 13:50:51
Link | Quote | Reply
 
I really, really like what you're doing here, I've recently gone through my own journey trying to prevent my game(s) grinding to a slow, messy end and found a lot of the same things causing performance to dip over time. Really appreciate the script, will be giving that a go if I need to try and track down an issue in the future.

Fenrir.Jinxs said: »
Unless there is something out there that will unload all addons and reload them
Might be a few that should be excluded

Could do something like this maybe;
Code
lua unloadall
wait 2
exec autoload/autoload


This would unload all of your addons, then run the auto-generated autoload.txt the Windower launcher makes, which also runs init.txt at the end of it. Idk if you were looking for something that'd only unload specific offenders but that'd cover everything as a blanket.

I'd actually *** love Windower itself to provide us a bit more info about what addons are doing so we could track down stuff causing performance issues without trial-and-error or relying on lua m which might not(?) tell the full story, but that's probably not going to happen.
[+]
By fractalvoid 2025-07-21 15:42:59
Link | Quote | Reply
 
I get this thing on Ashita every so often (mostly if I leave my guys logged in for too long, it seems) where some models will stop loading. Sometimes it's innocuous like this random Taru won't have a torso/head, just legs and floating hands. Kinda funny.

Other times, the damn Sortie bitzer won't load (and this was after the Ionis NPC wouldn't load either and I had to go to Western like a scrub)

unloading my addons ALWAYS fixes it (this was also the case when I was doing final TVR mission and none of the NPC/mob models would load and I couldn't target anything until I unloaded everything) but I haven't tried running a script to re-load everything and seeing if it works then - I usually just end up restarting if I don't hardcrash before then.

I was initially thinking it was my DGVoodoo improperly configured (i had originally intended to only 2box but now 3box) but I looked at it this morning and it seems to be correct... Will be looking into this later today and seeing if it is any help
[+]
 Fenrir.Jinxs
Offline
Server: Fenrir
Game: FFXI
user: Jinxs
Posts: 808
By Fenrir.Jinxs 2025-07-21 15:56:35
Link | Quote | Reply
 
What add-ons do you unload?
While they are different it might lead us to some similarities
Offline
Posts: 1227
By DaneBlood 2025-07-21 17:31:41
Link | Quote | Reply
 
we really need a "LUA ReloadAll" command that would just reload all lua add-ons
 Fenrir.Jinxs
Offline
Server: Fenrir
Game: FFXI
user: Jinxs
Posts: 808
By Fenrir.Jinxs 2025-07-21 17:43:20
Link | Quote | Reply
 
I know you probably mean the latter but I don't think reloading them will have the same effect as unloading them then loading them again
 Carbuncle.Nynja
Offline
Server: Carbuncle
Game: FFXI
user: NynJa
Posts: 5528
By Carbuncle.Nynja 2025-07-21 18:28:42
Link | Quote | Reply
 
I'm no windower dev, but I'm pretty sure reloading is doing exactly that.

reasoning: I can load an unloaded addon by doing //lua r addon

And having just done it to confirm: It will even say "addon is not loaded" before loading it if I do it that way.
Offline
Posts: 998
By Kaffy 2025-07-21 18:45:01
Link | Quote | Reply
 
Never used logger extensively, nor any of the inventory management addons like findall, itemizer, organizer. If these are the likely culprits can you just make an alias or bind to load and run them on demand? I'm sure there is a better way but that would help in the short term maybe.
 Fenrir.Zenion
Offline
Server: Fenrir
Game: FFXI
user: Zenion
Posts: 323
By Fenrir.Zenion 2025-07-21 19:38:37
Link | Quote | Reply
 
Lili released an addon for that just a couple months ago, you can find the forum post here.

Not sure how helpful that'll be if the memory problems are coming from, say, gearswap or treasury. Those kind of need to be loaded at all times to do their job properly.
[+]
Offline
Posts: 998
By Kaffy 2025-07-21 20:24:22
Link | Quote | Reply
 
seems that is exactly what OP wants, wonder why Lili didn't mention it
By fractalvoid 2025-07-21 21:34:57
Link | Quote | Reply
 
Fenrir.Jinxs said: »
What add-ons do you unload?
While they are different it might lead us to some similarities

When this happens I just do /unload all - not positive what the culprit could be as I do use some dat mods/pivot/etc but I could try isolating it the next few days and see if I can come up with anything

I used to get the black screen prior to using LargeAddressAware patcher - I have not gotten that in over a year now... however if I have all 3 of my chars logged in, I could have the missing asset/model thing start occurring within as little as like 6 hours. The TVR finale was the only place I was able to consistently recreate this happening, where no mob/NPC models would load - just the battlefield/environment
 Asura.Volteczero
Offline
Server: Asura
Game: FFXI
Posts: 130
By Asura.Volteczero 2025-07-21 22:29:41
Link | Quote | Reply
 
can plugin manager do this? that would be extremely convenient since it's all already there