[Issue/Bug]: Memory Leak #78

Closed
opened 2024-12-28 04:05:54 +00:00 by Varrox · 3 comments
Varrox commented 2024-12-28 04:05:54 +00:00 (Migrated from github.com)

What happened?

When calling the refresh discord function, it caches something in memory for some reason, I noticed this when putting the function in the update loop, memory usage went up on my program, and when it wasn't being called the memory usage stayed stable.

Version

1.3.1

Godot Version

4.3

Exact steps to reproduce this error

Refresh discord

GDScript

DiscordRPC.refresh() # idk

Godot output

No response

Additional information

No response

Checks

  • I tried reinstalling the addon or tried to fix it myself with other methods.
  • I tried restarting Discord and Godot completely.
  • I did read the documentation and its troubleshooting guide https://docs.vaporvee.com/discord-rpc-godot/
### What happened? When calling the refresh discord function, it caches something in memory for some reason, I noticed this when putting the function in the update loop, memory usage went up on my program, and when it wasn't being called the memory usage stayed stable. ### Version 1.3.1 ### Godot Version 4.3 ### Exact steps to reproduce this error Refresh discord ### GDScript ```gdscript DiscordRPC.refresh() # idk ``` ### Godot output _No response_ ### Additional information _No response_ ### Checks - [X] I tried reinstalling the addon or tried to fix it myself with other methods. - [X] I tried restarting Discord and Godot completely. - [X] I did read the documentation and its troubleshooting guide https://docs.vaporvee.com/discord-rpc-godot/

Please show me more code / context and on some system information

Please show me more code / context and on some system information
Varrox commented 2025-01-01 07:10:56 +00:00 (Migrated from github.com)

I just realized that it was a godot issue, and I was calling godot functions to change the discord presense through c#, which godot doesn't really like for some reason, I am sorry for opening this issue.

I just realized that it was a godot issue, and I was calling godot functions to change the discord presense through c#, which godot doesn't really like for some reason, I am sorry for opening this issue.

Nothing to be sorry. Try using a C# nuget package for discord instead. Should be more stable when using C#

Nothing to be sorry. Try using a C# nuget package for discord instead. Should be more stable when using C#
Sign in to join this conversation.
No description provided.