CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

The significant memory usage issue caused by using new Vector()

Open Nianmou opened this issue 4 months ago • 1 comments

Is there a way to clear the memory usage caused by some useless Vectors? I have used new Vectors in many plugins, but I don't know why it doesn't seem to automatically clear them https://media.discordapp.net/attachments/1160907912445710482/1402917085280993290/qq_pic_merged_1754551180314.jpg?ex=6895a7da&is=6894565a&hm=a1ce5b655df35092c4e3620859f5412d316441484a023431b052ac0a64b27cce&=&format=webp

Nianmou avatar Aug 07 '25 07:08 Nianmou

Hey there, its a known issue and https://github.com/roflmuffin/CounterStrikeSharp/pull/943 is your best choice atm but you will need to edit & recompile your plugins to work with this (and its currently limited to the Teleport function)

I hope that the dev branch will bring many changes and adjustments to the core where we can fix these issues from the bottom-up as we could not push breaking changes to the main otherwise plugins would break for everyone

KillStr3aK avatar Aug 07 '25 11:08 KillStr3aK