Latest WACUP public preview for x86 & x64 is build #22022 (June 29th 2025) (x86 & x64 changelogs)
Latest restricted WACUP beta release is build #22022 (June 29th 2025) (x86 & x64 changelogs)


NOTE: Beta testers are added in a limited & subjective manner as I can only support so many people as part of the beta test program to keep it useful for my needs.

Unless I think you're going to be helpful, not all requests will be accepted but might still be later on. Remember that beta testing is to help me & the limitations currently works for my needs for this project.

Author Topic: Question about winamp.ini file  (Read 243 times)

Aminifu

  • Beta Tester
  • Hero Member
  • *****
  • Posts: 1393
    • View Profile
Question about winamp.ini file
« on: May 28, 2025, 05:11:16 AM »
Hi dro,

I have been using WACUP since 2017. I have sections in my winamp.ini file for plug-ins I no longer use and have deleted or disabled loading. There are also sections for plug-ins I've never used and have disabled loading. Some of these sections have several lines. Should I delete these sections to prevent wasting caching space on unnecessary stuff?

I have noticed that the [Winamp] section has grown quite large. I'm starting to wonder if everything in it is still necessary and if one or more old obscure setting is contributing to issues you have not been able to replicate.

Unlike the studio.xnf file, I know of no easy and safe way to purge the winamp.ini file and let it be rebuilt with just stuff necessary for a particular configuration.
« Last Edit: May 28, 2025, 05:43:03 AM by Aminifu »
WACUP beta build v1.99.34.22022 (x86)
modified JVC Tape v1.2a modern skin
Windows 11 Home 64-bit v24H2
Logitech Z906 5.1 speaker system

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 5197
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Question about winamp.ini file
« Reply #1 on: May 28, 2025, 09:44:15 AM »
If the file is under 64KB in size then Windows will generally be fine with it as that's a limitation the OS provided apis used on ini files can have. I can't remember exactly what problems would occur but wacup's settings cache handling (have a vague memory you might've disabled that) works around that size issue on loading since it uses it's own handling to get things loaded into the cache & then it doesn't need to mess around with the file but that could then potentially mean it's wasting a few 10s of KB of memory due to what's there vs what's been cached in memory.

The ini file being smaller can be useful to avoid wasting memory & for a small performance adjustment in reducing the time to load / save the file. Since it's just a text file then it's simple enough to remove sections that aren't wanted now as long as you know what they're related to (as a few plug-ins sometimes look at the sections of other plug-ins but that's not too common) which would then force things back to their default reading options if the plug-in is still enabled.

A complete purging of values already at their defaults isn't something I'd want to implement as there's just too many options from the core & spread out over the plug-ins. I do however try to avoid saving out default values to avoid the file getting too large but that doesn't help if the file already has those stored (maybe I could do something with the read handling to try to work around it but that also assumes the code caller is providing a valid default & not a faux one which can be done to detect removed vs intentionally empty string values).

However settings that aren't used shouldn't make a difference if they're present in the file & is only a potential problem if something is trying to actually read the option to make use of it. I think more of your issues is something else is still corrupting the process memory as can occur with using modern skins rather than it being the config file itself but a smaller winamp.ini file generally shouldn't make things worse unless you remove an entry for something that you actually wanted to be changed from the wacup default for it.

Aminifu

  • Beta Tester
  • Hero Member
  • *****
  • Posts: 1393
    • View Profile
Re: Question about winamp.ini file
« Reply #2 on: May 28, 2025, 10:15:44 AM »
Ok, I will stop worrying about the winamp.ini file. Mine is only 14KB and deleting things has a better chance of hurting something than helping anything.

I am using the settings cache option on the preferences advanced page 1. The note to disable if 3rd party plug-ins don't work properly gave me pause, but I enabled it anyway. All plug-ins listed with the WACUP icon, I no longer consider to be 3rd party, even if they started out that way.
WACUP beta build v1.99.34.22022 (x86)
modified JVC Tape v1.2a modern skin
Windows 11 Home 64-bit v24H2
Logitech Z906 5.1 speaker system

dro

  • Admin / WACUP Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 5197
    • View Profile
    • WACUP (Winamp Community Update Project)
Re: Question about winamp.ini file
« Reply #3 on: May 31, 2025, 02:25:58 PM »
Usually you can probably work out what the sections might relate to which makes removing them a bit easier & if in doubt I can have a look at the file or what sections might relate to what otherwise it likely doesn't make much sense to mess with it when it's otherwise ok. I'd expect a file to be a few KB but with other plug-ins &/or changing the settings including more atf strings would make it grow so I'm not concerned by the file size & it's well below the OS limits so there's nothing to worry about that being a potential issue behind things going wonky.