Open ghost opened 1 year ago
Probably this allocation is being done each frame, because when i capped my fps at 66 it was allocating much slower.
looks like a memory leak in VGUI, found multiple vgui staticClientDLLToolsPanel strings in memory chunk with leaked memory and a lot of repeated data "F..Ѫ.....øÚ¬..... É..p¶Ö.|.." (hex: 46 09 04 D1 AA 0E 00 00 00 00 F8 DA AC 0E 00 00 00 00 A0 C9 8B 0E 70 B6 D6 0E 7C 07 01) with 1 char difference on each.
Setting r_drawvgui to 0 (requires sv_cheats 1) stops tf2 from leaking its memory, but doesn't clean leaked memory. Something is broken with VGUI on wine
Found a potential leak location https://github.com/mastercomfig/tf2-patches/blob/adce75185fe5822309f356424ea449dee029e2d8/src/engine/vgui_baseui_interface.cpp#L932C23-L932C23
No, the leak remains, or I built the project incorrectly, I don’t know for sure.
I give up, I have no idea where in VGUI this memory leak occurs, and why it only happens inside wine... I'll leave this thread open, maybe someone else can find the root of the problem
Description
When running tf2 or tc2 inside wine (wine-stable, wine-staging, proton, etc..) and being connected to any server tf2 will allocate memory every second (or frame, tick, etc) until OOM. This issue is not present when running on windows. This issue is not present when unconnected.
Checklist
master
branch.start_tf2.bat
(orstart_server.bat
) with no custom launch options.map
command ingame).Reproduction
Screenshots
Example memory usage in tc2 after 30 minutes of afk
Setup Details
Client Settings
Driver Version
Hardware Specs