When minimizing, everything slows down
12 replies



20.09.21 07:07:41 pm
As soon as i minimize CS2D, my PC slows down a little bit, and the CPU usage of CS2D goes crazy. Is it installing something on my PC? What is it doing?
CS2D is an old game, with an even older engine.
It's just going crazy, it's not doing anything.
It's just going crazy, it's not doing anything.
Look at me standing, here on my own again
Do you somehow find the idea of CS2D installing software in the background while minimised more likely than it just being old and not responsive enough to handle newer operating systems?
Look at me standing, here on my own again
@
Mami Tomoe: ofc he did, its obvious

Site: https://cs2d.com.br | Discord: https://discord.gg/85H6ACE8jp
TL;DR: Engine limitation.
From Discord
SQ has written:
From Discord

Most likely just running endless loop without waiting for frame buffer since it's not active. You can find that easily on BMax engine code.
I've been looking at it and other stuff to fix some issues we had with memory exceptions after window got minimized or inactive.
That might be due to their FLIP() implementation and lack of track of window states.
I've been looking at it and other stuff to fix some issues we had with memory exceptions after window got minimized or inactive.
That might be due to their FLIP() implementation and lack of track of window states.


I didn't look into it but probably what
SQ said on Discord. Maybe try windowed mode (if you aren't already) or try to switch between OpenGL/DirectX.
Also @
The Dark Shadow I can assure you that CS2D doesn't do anything bad with your system. It does not secretly download/upload/install malicious stuff in the background or anything like that.
I guess it would have been removed from Steam by now if anyone would have noticed such a thing.

Also @

I guess it would have been removed from Steam by now if anyone would have noticed such a thing.


Most likely just running endless loop without waiting for frame buffer since it's not active. You can find that easily on BMax engine code.
I've been looking at it and other stuff to fix some issues we had with memory exceptions after window got minimized or inactive.
That might be due to their FLIP() implementation and lack of track of window states.
I've been looking at it and other stuff to fix some issues we had with memory exceptions after window got minimized or inactive.
That might be due to their FLIP() implementation and lack of track of window states.

I didn't look into it but probably what
SQ said on Discord. Maybe try windowed mode (if you aren't already) or try to switch between OpenGL/DirectX.
Also @
The Dark Shadow I can assure you that CS2D doesn't do anything bad with your system. It does not secretly download/upload/install malicious stuff in the background or anything like that.
I guess it would have been removed from Steam by now if anyone would have noticed such a thing.

Also @

I guess it would have been removed from Steam by now if anyone would have noticed such a thing.
@

Is there a way to track what its doing? My PC really goes a little crazy when I minimize CS2D, It keeps freezing sporadically.
EDIT: It even uses 100% GPU when minimized.
edited 2×, last 23.09.21 02:11:30 pm

We never had issue with cs2d CPU usage in old versions of CS2D. It's quite a new issue.
Not really.



There's a bug within CS2D: the game will need much more CPU resources when the game window is not active.


@
MikuAuahDark: Maybe, I never noticed that then.
Anyways, It's fixed now after using Cheat Engine and modifying some addresses somehow. Thanks to a few of discord members.
https://media.discordapp.net/attachments/584404008848850947/890585937564815430/Capture.PNG
Even memory usage reduced by 200MB
EDIT:

Anyways, It's fixed now after using Cheat Engine and modifying some addresses somehow. Thanks to a few of discord members.
https://media.discordapp.net/attachments/584404008848850947/890585937564815430/Capture.PNG
Even memory usage reduced by 200MB
EDIT:
BOT AI has written:
One of the things it does is opening all existing local process objects and retrieving the base name of modules in a loop, and uses it for something else or something like that
it doesn't even have access to all of em unless you run CS2D as administrator (for some more)
it doesn't even have access to all of em unless you run CS2D as administrator (for some more)
Quote:
just simply replace address 006366DD to 006366E4 with NOP or 0x90 then you won't have to deal with it anymore, no big deal lol
0|006366DD:83->90
0|006366DE:C4->90
0|006366DF:04->90
0|006366E0:E8->90
0|006366E1:06->90
0|006366E2:A7->90
0|006366E3:F8->90
0|006366E4:FF->90
0|006366DD:83->90
0|006366DE:C4->90
0|006366DF:04->90
0|006366E0:E8->90
0|006366E1:06->90
0|006366E2:A7->90
0|006366E3:F8->90
0|006366E4:FF->90
Quote:
basically it was pretty much caused by the CS2D naive usermode anti-cheat
Quote:
As soon as you minimize the game or unfocus, it will start calling OpenProcess about 5000 times in a second, 300K in a minute, 3 million in 10 minutes. (if i did the math correctly lol) (at least for me)
to detect "banned" processes names
Replacing these addresses with NOP makes it when you unfocus to not call the "SearchForBannedProcesses" function
if you dont know whats OpenProcess, it opens an existing local process object.
that anti-cheat is so bad and quite useless, as not only it ruins your game experience, but it also cant access to all processes
so cant detect some of the hacks or banned processes lol
also its not only that, there are many more calculations and calls it does
to detect "banned" processes names
Replacing these addresses with NOP makes it when you unfocus to not call the "SearchForBannedProcesses" function
if you dont know whats OpenProcess, it opens an existing local process object.
that anti-cheat is so bad and quite useless, as not only it ruins your game experience, but it also cant access to all processes
so cant detect some of the hacks or banned processes lol
also its not only that, there are many more calculations and calls it does
edited 3×, last 23.09.21 04:52:42 pm
oh, so the issue was found. @
DC: it will be fixed?

Site: https://cs2d.com.br | Discord: https://discord.gg/85H6ACE8jp
@
The Dark Shadow: you are right.
@
DC:
There is old ac_chckprc() function that calls active processes every frame. Probably should be disabled as it is not even effective anymore.

@

There is old ac_chckprc() function that calls active processes every frame. Probably should be disabled as it is not even effective anymore.
edited 1×, last 24.09.21 08:03:58 am



