Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS# alternative #8

Open
aquevadis opened this issue Nov 24, 2024 · 5 comments
Open

CS# alternative #8

aquevadis opened this issue Nov 24, 2024 · 5 comments

Comments

@aquevadis
Copy link

aquevadis commented Nov 24, 2024

Heyoo, if the plugin is still activelly used it can be created in CS# as well via sending the UserMessage. Here's an example for Ontick:

//extended player buttons enum
private enum PlayerButtonsExt : ulong
{
ScoreBoard = 8589934592
}

//on tick:
if (player.Buttons == (PlayerButtons)PlayerButtonsExt.ScoreBoard) {

var revealUserMessage = UserMessage.FromPartialName("CCSUsrMsg_ServerRankRevealAll");
revealUserMessage.Send(player);

}

@Cruze03
Copy link
Owner

Cruze03 commented Nov 24, 2024

Yes, I know that is possible. I didn't make it because I heard CSSharp had some memory leak when using with it. If you can confirm it does not, I can make CSSharp version if anyone interested.

@aquevadis
Copy link
Author

Heyy

I'm revealing the ranks that way on my public server since the UserMessages were implemented in CS# and didn't see any issues(the ram usage never goes up to infinity for example) related to leaking memory.

On the other hand, can I ask you to tell me what you know about the UM memory leak reports that you are referring to, as I'm noticing an issue with the plugins below and after the plugins that use UserMessages(hooking/sending) after the server runs for prolonged times and seems that the GC overreacts when clearing unused references to List/Dictionaries?

Kind regards,

@Cruze03
Copy link
Owner

Cruze03 commented Nov 27, 2024

My friend was saying that people are facing issue performance issue when using this. Also send message user as well has performance issues not depending on which user message sent. But if not, all gucci

@arnon001
Copy link

Yes, I know that is possible. I didn't make it because I heard CSSharp had some memory leak when using with it. If you can confirm it does not, I can make CSSharp version if anyone interested.

Please make a CS# version of this.
It'll be really helpfull

@daffyyyy
Copy link

Heyy

I'm revealing the ranks that way on my public server since the UserMessages were implemented in CS# and didn't see any issues(the ram usage never goes up to infinity for example) related to leaking memory.

On the other hand, can I ask you to tell me what you know about the UM memory leak reports that you are referring to, as I'm noticing an issue with the plugins below and after the plugins that use UserMessages(hooking/sending) after the server runs for prolonged times and seems that the GC overreacts when clearing unused references to List/Dictionaries?

Kind regards,

Tested now, with 25+ players 1.5gb ram usage more, and slow frame 100ms+ bcs of usermessage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants