Author Topic: [BUG] ID3D11Device::Release SLOW  (Read 1371 times)

kokole

  • Noob
  • *
  • Posts: 1
[BUG] ID3D11Device::Release SLOW
« on: November 20, 2016, 02:07:24 pm »
Hello, I have a custom overlay for a game. The code in my hook (IDXGISwapChain::Present) sometimes calls ID3D11DeviceContext::GetDevice and then ID3D11Device::Release to release the reference.
If I do this a lot of times, I get very big FPS drops (doesn't need to be recording, Dxtory is idle and this happens).

Code: [Select]
[Dxtory]
Version: 2.0.140
UID: 02739474-6ae3-40be-9628-b7a6709e9e50

[Dxtory Files]
InstallPath: C:\Program Files (x86)\ExKode\Dxtory2.0
amd_ags_x86.dll Size: 94,208 bytes Ver:  SHA1: 07e93edac24c58e411430d61a2f7207d8a7bf078
AppNames.txt Size: 1,047 bytes SHA1: 40cd39ab435dbcb3d44eba72b737a05b9a14410b
AudioStreamSplitter.exe Size: 38,432 bytes Ver: 2.0.0.2 SHA1: 5195bb906a508f9e7175f3c9c7d62c6c76f8217c
AudioStreamSplitter_ja.txt Size: 134 bytes SHA1: 489a5264d73a47edcce7c92edb131cf63e5e5709
AVIFix.exe Size: 72,192 bytes Ver: 2.0.0.131 SHA1: 8743067b975002d014008cfb0db363dfb606c375
AVIFix_ja.txt Size: 288 bytes SHA1: 9cab20780686687b84f604c77c73aaae3fd8126d
AVIMux.exe Size: 166,432 bytes Ver: 2.0.0.131 SHA1: 434d85edc5d4bb77c64ca703f9790062cc87a117
AVIMuxCore.dll Size: 199,200 bytes Ver: 2.0.0.130 SHA1: 53661b27f6f6f9f3e8316dca872fd4b01da93e49
AVIMux_ja.txt Size: 1,701 bytes SHA1: fa240715d701f450bb95377aa8517a252329b619
CryptData.pup Size: 84 bytes SHA1: cf9d724807f965d372da4d168bebd78c5258d6ae
Dxtory.exe Size: 609,488 bytes Ver: 2.0.0.140 SHA1: cd46c502e9cd1002adc8de087b3533ad650314f1
Dxtory64.exe Size: 130,112 bytes Ver: 2.0.0.132 SHA1: 4cce60b896a04515767435c7fd29feefed3c1aac
DxtoryCore.dll Size: 8,311,464 bytes Ver: 2.0.0.140 SHA1: 8c83b11d455a35de6473d10152038e79a67103e2
DxtoryCore64.dll Size: 8,032,464 bytes Ver: 2.0.0.140 SHA1: 3beff75d681c346fc98358261fabd37adc14a1b5
DxtoryHK.dll Size: 199,888 bytes Ver: 2.0.0.137 SHA1: 3120931ccc52fbbc15c79e3c992dbe99d69f8536
DxtoryHK64.dll Size: 230,608 bytes Ver: 2.0.0.137 SHA1: 59aaa313d46f273c2c89d6e07e67753c720bf432
DxtoryMM.dll Size: 1,125,952 bytes Ver: 2.0.0.132 SHA1: b0b6fcc47b6b3f326de582975b269d57c2dd0594
DxtoryMM64.dll Size: 1,139,776 bytes Ver: 2.0.0.132 SHA1: 4cc91746487d863e2eea7a572c498c7eddf83817
DxtoryVideo.dll Size: 435,408 bytes Ver: 2.0.0.136 SHA1: 1aadce1a111f7ef840057129a673d6075c1f0edf
DxtoryVideo64.dll Size: 480,464 bytes Ver: 2.0.0.136 SHA1: 36bc4cc08f82a5a605a77f2d58fbfcea1699e18e
DxtoryVideo64_Install.bat Size: 57 bytes SHA1: 5c00dcbc4b631932e7920e7e1bf69e1daf8e26fe
DxtoryVideo64_Uninstall.bat Size: 60 bytes SHA1: 97986d6e7a40eceb84609444ed621c6689526c4d
DxtoryVideoSetting.exe Size: 129,568 bytes Ver: 2.0.0.130 SHA1: ee440e846cfeec2acb4a88f81f589e00c34e825e
DxtoryVideoSetting_ja.txt Size: 1,675 bytes SHA1: e532f36bd5ac6255659d240180637484661f0c83
DxtoryVideo_Install.bat Size: 55 bytes SHA1: 8494f535a15ea10b2d5e0fd62290a88758bf210e
DxtoryVideo_Uninstall.bat Size: 58 bytes SHA1: 6d05923ef8db62f30ee22582f06979f4b2b48a64
DxtoryVulkanLayer.dll Size: 109,776 bytes Ver: 2.0.0.136 SHA1: b8550335c1367d808b2bc64183ecda4ca61927ee
DxtoryVulkanLayer.json Size: 385 bytes SHA1: 2416b04e3895149b4200c1777f470a768519642d
DxtoryVulkanLayer64.dll Size: 132,816 bytes Ver: 2.0.0.136 SHA1: e9c6eaa8d2ad7d684c9525787455d3aca38f6598
DxtoryVulkanLayer64.json Size: 387 bytes SHA1: 13d84a82bda5f98cb6ad6069c13c9ce2304b7d38
Dxtory_ja.txt Size: 19,608 bytes SHA1: 3d0dd54fa0a9ef379f1c663436bfeb799c643963
EULA_en.txt Size: 1,356 bytes SHA1: 340c6b3425ab78d83c6a8bd344b6cc58d152ce8f
EULA_ja.txt Size: 1,814 bytes SHA1: cded0d38ec6a1cb0e86bc264496deaa28082cb51
filelist.txt Size: 279 bytes SHA1: 59e79a9d478b71358ab0d2efb54408bf14dbd182
filelist64.txt Size: 289 bytes SHA1: f994029569e293d15c3f2c923861378124f84598
ignore_module_list.txt Size: 1,346 bytes SHA1: 479ca301e9a14d3fc927ca80f6d12481a8644922
InstallVulkanLayer.bat Size: 69 bytes SHA1: 156439c9308c8b5a32d697e1f3c11c2c5199a64b
InstallVulkanLayer64.bat Size: 71 bytes SHA1: 35574f9f2a414e8ebc592a8cec5a83d030b07000
LicReg.dat Size: 12,900 bytes SHA1: fd8714a81540fed48334716704b10b265ac9f699
LicReg.exe Size: 95,952 bytes Ver: 2.0.0.136 SHA1: 3382997b62809ac29762a6ea62197c6eb4c24094
LicRegNoUI.exe Size: 19,664 bytes Ver: 2.0.0.140 SHA1: cfd4884e884e8fd708874bfcc660f3ea2301693a
LicReg_ja.txt Size: 707 bytes SHA1: 981af64897276c22867952f4972d9c29c6ee35e7
RawCapConv.exe Size: 208,928 bytes Ver: 2.0.0.131 SHA1: 32b6ec5d2f6649df4a47aedc476965433a8bdec4
RawCapConv_ja.txt Size: 1,869 bytes SHA1: 12086976f07abfc8d435abeee6c450c3cb2b07cd
RCStream.dll Size: 164,352 bytes Ver: 1.0.0.76 SHA1: 31266452f142cd7c856384945ffc410b2c9c8be9
readme.txt Size: 1,322 bytes SHA1: f8b7e31de7927309f7f3e03936374837906a94d9
Src16x10_Dest4x3.png Size: 40,081 bytes SHA1: 3b4f6332b8b3129ee351a9c96a9c4ac7f6f7a4cd
Src16x9_Dest4x3.png Size: 40,179 bytes SHA1: fcec824f4e95f7becf65bbabcc1a99c1470b99a1
unins000.dat Size: 23,851 bytes SHA1: 618319a74abfb735d295820e1efd649db49c233f
unins000.exe Size: 1,198,288 bytes Ver: 51.1052.0.0 SHA1: 72e4c4907b01f9b2cf93764a1e1b5352563156e3
unins000.msg Size: 22,701 bytes SHA1: ab7961d64f8b22503c9c7ca4b335fa539b0278a3
UninstallVulkanLayer.bat Size: 71 bytes SHA1: f54f1fabd821b9e82086eebae8eb89e4e9322f86
UninstallVulkanLayer64.bat Size: 73 bytes SHA1: 3646bdc62ab4d18d3e8bf7e261dbc03ee7d77bfc
UpdateChecker.exe Size: 93,696 bytes Ver: 2.0.0.0 SHA1: 221bd3663f4393b368ebf74d1a892f9379ddbe44
UpdateChecker.ini Size: 238 bytes SHA1: 796da23b4a505bf2ef370dc271d1a80585dff6e2
UpdateChecker_ja.txt Size: 190 bytes SHA1: 969913786a3497f3e448572f7810ee9814314928
UWPHelper.dll Size: 132,304 bytes Ver: 1.0.0.1 SHA1: 5e6de832fad6d5d40bba66e568abc780cd93f9b4
UWPHelper64.dll Size: 159,440 bytes Ver: 1.0.0.1 SHA1: 9ddfab3d06bb0894341ba63a8dab98c83222d38f
DxtoryCodec.dll 64bit Size: 2,606,144 bytes Ver: 2.0.0.132 SHA1: 7ef69696fe270d8bf353ead32bd58681ee61e5fe
DxtoryCodec.dll 32bit Size: 2,499,648 bytes Ver: 2.0.0.132 SHA1: cd610194e3ddceefa04bc0f28a5f2139fee0d615

[System Information]
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
CPU Instruction Set: MMX SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 FMA3 AES
OS: Microsoft Windows 10 Pro x64
OSVersion: 10.0.14393
OSLanguage: 2057
ServicePack:
Memory0: BANK 0 8,589,934,592 bytes
Memory1: BANK 2 8,589,934,592 bytes
TotalMemory: 17,179,869,184 bytes
Total Physical Memory: 17,135,845,376 bytes
Available Physical Memory: 8,043,278,336 bytes
Total Page File: 22,236,119,040 bytes
Available Page File: 6,418,128,896 bytes
Total Virtual Memory: 2,147,352,576 bytes
Available Virtual Memory: 1,689,976,832 bytes
PerformanceCounterFrequency: 3328122 (0x32C87A)
VideoCard: NVIDIA GeForce GTX 980M Memory: 4,293,918,720 Processor: GeForce GTX 980M DriverVer: 10.18.13.6822 DriverDate: 2016-05-19 02-00-00
Display0: 1920x1080 32bits 60Hz
SoundDevice: High Definition Audio Device Manufacturer: Microsoft
SoundDevice: High Definition Audio Device Manufacturer: Microsoft

[NVIDIA Info]
NVDriver: 368.22 r368_20
GPU0: GeForce GTX 980M Memory: 8192MB MemoryClock: 2505MHz BaseClock: 1038MHz BoostClock: 1127MHz

[Audio Device]
Speakers (High Definition Audio Device) - CoreAudioOut
Headphones (High Definition Audio Device) - CoreAudioOut
Microphone (High Definition Audio Device) - CoreAudioIn, Volume 100

[Video Codec 64bit]
Fraps Video Decompressor FCC:fps1
Intel IYUV codec FCC:i420
Intel IYUV codec FCC:iyuv
Lagarith Lossless Codec FCC:lags
Microsoft RLE FCC:mrle
Microsoft Video 1 FCC:msvc
RivaTuner Video Codec FCC:rtv1

[Video Codec 32bit]
Cinepak Codec by Radius FCC:cvid
Fraps Video Decompressor FCC:fps1
Intel IYUV codec FCC:i420
Intel IYUV codec FCC:iyuv
Lagarith Lossless Codec FCC:lags
Microsoft RLE FCC:mrle
Microsoft Video 1 FCC:msvc
RivaTuner Video Codec FCC:rtv1

[Audio Codec]
Microsoft IMA ADPCM
MS-ADPCM
Microsoft CCITT G.711
Microsoft GSM 6.10
PCM
IEEE Float

[License Information]
License: Registered
Expire: Unlimited
LicVerify: 1e721c33d711fbc16e0bfc0d68ad6a99c835befd

[Additional Information]
Dxtory_log.txt: Empty
ErrorLog.txt: Empty

[Global Setting]
OptionFlag: SharedJavaProfile

[Ignore List]

======================================================================

[Profile]
Name: Default
Path:

[Overlay]
Position: LeftTop
Flag: VidoeFPS RecordFPS RecordState SSNotification  Time Warn
Layout: Vert
Color: Sleep FF00FF00, Active FFFFBC00, Movie  FF00FF00, ScreenShot FF00FF00

[Folder]
x C:\Users\Ignacio\Videos  Speed: 0MB/sec  Free: 66,599,542,784 Total: 998,781,972,480 Format: NTFS
SSFolder: C:\Users\Ignacio\Pictures

[HotKey]
MovieCapture: F12 (0x00000058)
PushToTalk: None
ScreenShotSingle: F11 (0x00000057)
ScreenShotRepeat: None
ScreenShotAuto: None
ToggleStatus: None
MovieCaptureFrame: None
ScreenShotCaptureFrame: None

[Movie]
Clipping:
ClipMargin: 0,0,0,0
ClipSize: 0,0
Scaling: Percent 100% 0x0
Codec: Dxtory Video Codec, RGB
FrameRate: 30
Output: File AVI
Option:

[Audio0]
Enabled: True
PushToTalk: False
Device: Speakers (High Definition Audio Device)
Codec: PCM
Format: PCM 48000 Hz, 16 bit, Stereo

[ScreenShot]
Clipping:
ClipMargin: 0,0,0,0
ClipSize: 0,0
Scaling: Percent 100% 0x0
HighSpeedLimit: 0
RepeatInterval: 1000
Format: PNG
JpegQuality: 97
Option:

[Advanced]
DataProcessingOption:
HookOption:
ThreadCount: 1
ThreadMask: 0000000000000000
LimitedFPS: False
FPSLimit: 60
DelayHook: False
DelayHookTime: 5

======================================================================

[Profile]
Name: Titanfall 2
Path: C:\Program Files (x86)\Origin Games\Titanfall2\Titanfall2.exe

[Advanced]
DataProcessingOption:
HookOption:
ThreadCount: 1
ThreadMask: 0000000000000000
LimitedFPS: False
FPSLimit: 60
DelayHook: False
DelayHookTime: 5

[LastUsingInformation]
DateTime: 2016/11/20 05:56:14
Version: 2.0.140
64bit Process
DeviceType: GL DX9 DX11
View0.Type=DX11
View0.CreateFlag=0
View0.FeatureLevel=D3D_FEATURE_LEVEL_11_0
View0.Format=DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
View0.BackBufferCount=2
View0.Size=1280x720
View0.HWND=0x000B10FE
View0.WindowTitle=Titanfall 2
View0.ClassName=Respawn001

======================================================================
VerifyHash: c5934a254a8fd533013a49d56b30ea618ddd5777