botc-release icon indicating copy to clipboard operation
botc-release copied to clipboard

[BUG] The app takes up a lot of resources after a few games (after 2/3 games)

Open matgorzynski opened this issue 10 months ago • 10 comments

Description

When playing a game via a macOS app (apple silicon), after a few games there is a noticeable increase in resource consumption (like CPU and RAM) by the app. This happens gradually - during 1 game everything is fine. During the game, for example, 3 it is already noticeable that the application has problems processing information - because when I accept a call, there is a long delay between I can click and connect to someone or when I unmute - it takes a while before I can be heard and the icon changes. Now I have found a way to fix this by using cmd+q to force close the application and then run it back on. It looks as if the application is not quite coping with memory management and freeing up resources - instead of managing memory each time (e.g. freeing up etc) it keeps taking more, more and more and operating on all the resource it has accumulated so far :/

Steps to reproduce

No response

Browser

Standalone app

Operating System

Mac

Date and Time

I cannot specify - eg 18.01.2024 around 01:00 (GMT +1)

Game Session

No response

Relevant console log output


matgorzynski avatar Jan 19 '25 00:01 matgorzynski

Hey there, can you please take a look at #158 ? This has been reported before and might be related to using cam feeds over a longer time period. Investigating this further is going to take a lot of time, as I need to figure out if there are any memory leaks in the app during regular usage. In the meantime, you could try some of the suggestions from the other issue or just restart the app once every few hours. You could also try the browser version to see if the same problems are happening there as well.

bra1n avatar Jan 21 '25 11:01 bra1n

Hello, the bug you attached is a problem with battery - in my case I don't see any problems with the battery, only with increased use of resources such as CPU and RAM

matgorzynski avatar Jan 27 '25 11:01 matgorzynski

Yes, but the battery usage is directly related to the resources the app needs to run. In case of increased CPU / memory usage, the battery would also drain faster than normal. I'd suggest you try disabling cams and / or animations for a bit to see if that makes a difference in your case.

bra1n avatar Jan 27 '25 12:01 bra1n

Ok, I will try disable camera options and check if that help :)

matgorzynski avatar Jan 27 '25 16:01 matgorzynski

Hey, I've played a couple of times today and I've had a problem with the app running smoothly (e.g. after accepting a meeting, it takes a long time before it joins and I hear the person talking to me or unmuted takes a long time). I turned off what you guys suggested and it didn't help. I did manage to take a screenshot of the app usage :)

Image

matgorzynski avatar Jan 28 '25 23:01 matgorzynski

Hey, I've played a couple of times today and I've had a problem with the app running smoothly (e.g. after accepting a meeting, it takes a long time before it joins and I hear the person talking to me or unmuted takes a long time).

Did you have these problems right away or only after letting it run for some time? Can you also please try using the browser version similarly to check if the performance issues are happening there, too?

bra1n avatar Jan 29 '25 09:01 bra1n

after letting it run Ok - next time I will play via browser and check that :)

matgorzynski avatar Jan 29 '25 10:01 matgorzynski

Hi @matgorzynski!

I'm taking a look into this a bit closer. I wondered if you had more specific information about the CPU and memory usage before and after the problem happened. Trying with the browser version will definitely give you more information, but I want to dig into the problems with the standalone app here because it should be easier to measure what's going wrong.

Your screenshot doesn't really contain any usable information. I guess it's showing that at one point the graphics process was using 35.7% of your CPU?

What I'd ideally like to see is FOUR screenshots, each of them showing all of the Clocktower processes:

  1. CPU, before the app slows down
  2. Memory, before the app slows down
  3. CPU, after the app slows down
  4. Memory, after the app slows down

Seeing these comparisons will help us understand how much worse the app is performing separately from anything else on your computer.

For each of those screenshots, I'd love to see at least the five Clocktower rows and the column headings, for example like this:

Image

In macOS Activity Monitor, you can make sure that all of the Clocktower processes are grouped together by going to the View menu and selecting "All processes, Hierarchically":

Image

Let me know if you can grab these screenshots during a play session and I'll try and reproduce performance problems on my computer too.

Thanks!

gareth avatar Jan 29 '25 11:01 gareth

Hey, I tried to play through the computer and I also have an increase in consumption (screens are attached)

CPU: Image

RAM: Image

matgorzynski avatar Feb 01 '25 00:02 matgorzynski

Hello @gareth

I will play the next few games through the app and create screenshots before and after the games :)

matgorzynski avatar Feb 01 '25 01:02 matgorzynski

@matgorzynski heya, are you still experiencing these issues?

bra1n avatar Sep 24 '25 11:09 bra1n

Hello, I changed OS. On windows i dont have that issue

matgorzynski avatar Sep 30 '25 09:09 matgorzynski