You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the PsyDoom process does a lot of registry accesses once minimized. It quickly reach hundred thousands hits after a few seconds. Here is the output of ProcessMonitor :
Looking at the screenshot, it seems to be related to the video card/GPU.
EDIT : this is triggered by those methods, called every frame :
There is an attempt to create a swap chain every frame but it fails :
// Swapchain creation can fail validly if the window is zero sized and cannot currently be presented to
if (mDeviceSurfaceCaps.isZeroSizedMaxImageExtent())
return false;
While having the game minimized is not how PsyDoom is supposed to be played, this should not perform so many accesses to the registry.
Some ideas to prevent this :
delay swap chain creation after it fails (eg: by one second).
detect if window is minimized and skip rendering (and thus creation of swap chain).
pause/sleep the game if window is minimized.
The text was updated successfully, but these errors were encountered:
tigrouind
changed the title
Possible excessive registry access during gameplay
Excessive registry access during gameplay (due to swap chain fail?)
May 12, 2023
tigrouind
changed the title
Excessive registry access during gameplay (due to swap chain fail?)
Excessive registry access due to swap chain fail
May 12, 2023
tigrouind
changed the title
Excessive registry access due to swap chain fail
Excessive registry access when window is minimized (due to swap chain creation fail)
May 12, 2023
I noticed that the PsyDoom process does a lot of registry accesses once minimized. It quickly reach hundred thousands hits after a few seconds. Here is the output of ProcessMonitor :
Looking at the screenshot, it seems to be related to the video card/GPU.
EDIT : this is triggered by those methods, called every frame :
There is an attempt to create a swap chain every frame but it fails :
While having the game minimized is not how PsyDoom is supposed to be played, this should not perform so many accesses to the registry.
Some ideas to prevent this :
The text was updated successfully, but these errors were encountered: