Fps+monitor+activation+code Direct

// Enumerate adapters and devices IDXGIAdapter* dxgiAdapter; dxgiFactory->EnumAdapters(0, &dxgiAdapter);

IDXGIDevice* dxgiDevice; device->QueryInterface(IID_PPV_ARGS(&dxgiDevice)); fps+monitor+activation+code

// Swapchain creation DXGI_SWAP_CHAIN_DESC1 swapChainDesc = {}; swapChainDesc.BufferCount = 2; swapChainDesc.Width = 800; swapChainDesc.Height = 600; swapChainDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; swapChainDesc.SampleDesc.Count = 1; swapChainDesc.SampleDesc.Quality = 0; swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD; swapChainDesc.BufferCount = 2

// Create a DXGI factory IDXGIFactory* dxgiFactory; CreateDXGIFactory(IID_PPV_ARGS(&dxgiFactory)); swapChainDesc.Width = 800