From d120e7b489adc42a4489c63305413dfe52ed8bbf Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Thu, 6 Aug 2020 15:33:18 +0100 Subject: Improved CPU usage drastically. Switched to directx9. Reduced RAM usage by only remapping modules from a blacklist. --- client/src/hwid/hwid.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'client/src/hwid') diff --git a/client/src/hwid/hwid.h b/client/src/hwid/hwid.h index 445635d..d4b1159 100644 --- a/client/src/hwid/hwid.h +++ b/client/src/hwid/hwid.h @@ -9,29 +9,7 @@ namespace hwid { }; __forceinline bool fetch(hwid_data_t& out) { - IDXGIDevice* dxgi_device; - if (ui::device->QueryInterface(&dxgi_device) != S_OK) { - return false; - } - - IDXGIAdapter* adapter; - if (dxgi_device->GetParent(__uuidof(IDXGIAdapter), reinterpret_cast(&adapter)) != S_OK) { - return false; - } - - DXGI_ADAPTER_DESC desc; - if (adapter->GetDesc(&desc) != S_OK) { - return false; - } - - out.uid += desc.VendorId >> 1; - out.uid += desc.DeviceId >> 1; - out.uid += desc.DedicatedVideoMemory << 5; - - out.gpu = util::wide_to_multibyte(desc.Description); - - adapter->Release(); - dxgi_device->Release(); + return true; } -- cgit v1.2.3