Dynamic-FPS icon indicating copy to clipboard operation
Dynamic-FPS copied to clipboard

High cpu usage (or game freeze) after a long time

Open andreasdc opened this issue 2 years ago • 9 comments

When you have game enabled for couple hours, you can see increased cpu usage and sometimes the game freezes when you try to unfocus.

andreasdc avatar Jun 03 '22 22:06 andreasdc

Very strange! I've never run into this. Does it happen even if Dynamic FPS (and Fabric API) is the only mod in your instance?

juliand665 avatar Jun 03 '22 23:06 juliand665

Very strange! I've never run into this. Does it happen even if Dynamic FPS (and Fabric API) is the only mod in your instance?

It's very hard to tell, I can prepare spark profilers when it works normaly and when it bugs, but when it freezes it will be hard to analyze. :D You can hear sounds normally, but screen is freezed.

andreasdc avatar Jun 04 '22 11:06 andreasdc

Hm yeah, that's unfortunate. You didn't really answer my question though? If it doesn't happen when you're only using this mod and nothing else, it's probably a compatibility issue, and that would change how we need to approach it.

juliand665 avatar Jun 06 '22 01:06 juliand665

Hm yeah, that's unfortunate. You didn't really answer my question though? If it doesn't happen when you're only using this mod and nothing else, it's probably a compatibility issue, and that would change how we need to approach it.

How to check it other than checking with only 2 mods?

andreasdc avatar Jun 06 '22 17:06 andreasdc

I mean, did you try checking with only those 2 mods (dynamic fps + fabric api)? Because it doesn't sound like you did, and that would be really helpful. It is pretty annoying to have to leave the game running for so long just to see if it happens again; I can't really think of a better way though…

When it freezes, is the game still running? For example, do keybinds and such still work? Also, is there maybe a way to unfreeze it?

juliand665 avatar Jun 07 '22 00:06 juliand665

I mean, did you try checking with only those 2 mods (dynamic fps + fabric api)? Because it doesn't sound like you did, and that would be really helpful. It is pretty annoying to have to leave the game running for so long just to see if it happens again; I can't really think of a better way though…

When it freezes, is the game still running? For example, do keybinds and such still work? Also, is there maybe a way to unfreeze it?

Freezing happens after really long time, but I didn't have it for some time. I have a profiler when cpu was at around 20% when minimalized, what do you want to check?

andreasdc avatar Jun 07 '22 21:06 andreasdc

Is the CPU being at 20% when minimized out of the ordinary for you? It doesn't feel like particularly high usage. As for what you should check, I honestly don't have any concrete starting points, but maybe you can try to compare it to when the usage is lower and see if anything jumps out at you?

I've been meaning to attach a profiler myself because I often get around 80% CPU usage even when not rendering at all, and I'm not really sure what's causing that.

juliand665 avatar Jun 08 '22 03:06 juliand665

It's not ordinary, normally it's at around 4%. Incompability with EnityCulling? Lagged: image Normal: image

andreasdc avatar Jun 08 '22 15:06 andreasdc

@juliand665 Now I have freezed game, it's really weird. I hear the sounds normally, the game is running, but I can't maximize it. Maybe something with screen being turned off after some time? image

andreasdc avatar Jun 08 '22 18:06 andreasdc

Use VulkanMod instead of sodium

andreasdc avatar Feb 18 '23 15:02 andreasdc

ohhh...Im delete message.

Inscos avatar Feb 19 '23 08:02 Inscos

ohhh.sorry! my is chinese.I have removed the comment.

Inscos avatar Feb 19 '23 08:02 Inscos

@andreasdc can you still reproduce this in version 3.1.0 or later?

LostLuma avatar Sep 29 '23 00:09 LostLuma

I didn't have this issue for a long time 🚀

andreasdc avatar Sep 29 '23 09:09 andreasdc